LJ::do_to_cluster

LJ::do_to_cluster — Given a subref, this function will pick a random cluster and run the subref, passing it the cluster id. If the subref returns a 1, this function will exit with a 1. Else, the function will call the subref again, with the next cluster.

Use

LJ::do_to_cluster(subref);

Arguments

  • subref. Reference to a sub to call; @_ = (clusterid)

Source:

cgi-bin/ljlib.pl

Returns:

1 if the subref returned a 1 at some point, undef if it didn't ever return success and we tried every cluster.