slave dbh's don't seem to get validated

Brad Fitzpatrick brad at danga.com
Tue Jun 19 22:22:52 UTC 2007


Steven,

I fixed this in a different way in svn rev 1003.  It will be part of 2.17,
when 2.17 is released.

- 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