slave dbh's don't seem to get validated

Brad Fitzpatrick brad at
Thu May 31 08:15:10 UTC 2007

Yes, looks like something like this is needed.  I'll get this fixed in the
next release, using the below patch or similar.

We've never used the slave support ourselves yet, otherwise we would've
surely noticed this ourselves.  Unless things were busy enough they never
timed out, or we had no timeout value set.

- Brad

On Tue, 29 May 2007, Steven Shou wrote:

> 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