]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Paxos: go active *after* refreshing
authorSage Weil <sage@inktank.com>
Fri, 31 May 2013 23:39:37 +0000 (16:39 -0700)
committerSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 18:27:04 +0000 (11:27 -0700)
commite68b1bd36ed285e38a558899f83cf224d3aa60ed
tree5877689d3cf142cc5e226db87bf5f70052773adf
parentdc83430124a5fd37573202a4cc0986c3c03739ef
mon/Paxos: go active *after* refreshing

The update_from_paxos() methods occasionally like to trigger new activity.
As long as they check is_readable() and is_writeable(), they will defer
until we go active and that activity will happen in the normal callbacks.

This fixes the problem where we active but is_writeable() is still false,
triggered by PGMonitor::check_osd_map().

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Paxos.cc