slave dbh's don't seem to get validated
Steven Shou
steven.shou at verizon.net
Tue May 29 21:42:32 UTC 2007
Hi all,
I'm running MogileFS with MySQL on one master and many slaves.
Everything works great until connections to the slave dbs timeout for
the idling query workers. Then, all get_paths commands would return
'unknown_key' which is not what I want.
Is there any better way that I'm not aware of, or are changes below
fine?
From
sub validate_dbh { Mgd::get_store()->recheck_dbh }
To
sub validate_dbh {
my $store = Mgd::get_store;
$store->recheck_dbh;
$store->read_store()->recheck_dbh if $store->is_slave;
}
Steven
More information about the mogilefs
mailing list