slave dbh's don't seem to get validated

Steven Shou steven.shou at
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  

sub validate_dbh { Mgd::get_store()->recheck_dbh }

sub validate_dbh {
	my $store = Mgd::get_store;
         $store->read_store()->recheck_dbh if $store->is_slave;


More information about the mogilefs mailing list