]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: explicitly refresh_from_paxos() when leveldb state changes
authorSage Weil <sage@inktank.com>
Sun, 2 Jun 2013 23:14:01 +0000 (16:14 -0700)
committerSage Weil <sage@inktank.com>
Mon, 24 Jun 2013 23:16:40 +0000 (16:16 -0700)
commit34acc5a3161b6bcda2b9f7ce18d89a8618fff1c5
tree22be99da8e673e83af4445f0d5165f2d9d6cfca3
parent4474a0cc6c009a566ecf46efadb39d80343a7c68
mon: explicitly refresh_from_paxos() when leveldb state changes

Instead of opportunistically calling each service's update_from_paxos(),
instead explicitly refresh all in-memory state whenever we know the
paxos state may have changed.  This is simpler and less fragile.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit cc339c07312006e65854207523f50542d00ecf87)
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/Paxos.cc
src/mon/PaxosService.cc
src/mon/PaxosService.h