LJ::get_cluster_reader

LJ::get_cluster_reader — Returns a cluster slave for a user, or cluster master if no slaves exist.

Use

LJ::get_cluster_reader(uarg);

Arguments

  • uarg. Either a userid scalar or a user object.

Source:

cgi-bin/ljdb.pl

Returns:

DB handle. Or undef if all dbs are unavailable.