]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PaxosService: allow paxos service writes while paxos is updating
authorSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 22:39:23 +0000 (15:39 -0700)
committerSage Weil <sage@inktank.com>
Wed, 26 Jun 2013 04:25:04 +0000 (21:25 -0700)
commitd31ed95064c229610398f57b5bd6ce40b94b4edd
tree5ac70037a0deb49a75758658f076487f087af6d7
parent2d2aa00ed356228042c7765d4c2335e77ca1f46f
mon/PaxosService: allow paxos service writes while paxos is updating

In commit f985de28f86675e974ac7842a49922a35fe24c6c I mistakenly made
is_writeable() false while paxos was updating due to a misread of
Paxos::propose_new_value() (I didn't see that it would queue).
This is problematic because it narrows the window during which each service
is writeable for no reason.

Allow service to be writeable both when paxos is active and updating.

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