]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PaxosService: prevent reads until initial service commit is done
authorSage Weil <sage@inktank.com>
Mon, 8 Jul 2013 17:49:28 +0000 (10:49 -0700)
committerSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 05:17:41 +0000 (22:17 -0700)
commitd08b6d6df7dba06dad73bdec2c945f24afc02717
treeb291b8fccbcdd18a9c5af040920938f538d75129
parentf1b4398dd2cef746a69e22b8aa23a9cb7f4afbef
mon/PaxosService: prevent reads until initial service commit is done

Do not process reads (or, by PaxosService::dispatch() implication, writes)
until we have committed the initial service state.  This avoids things like
EPERM due to missing keys when we race with mon creation, triggered by
teuthology tests doing their health check after startup.

Fixes: #5515
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/PaxosService.h