]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: convert ConfigKeyService -> KVMonitor
authorSage Weil <sage@newdream.net>
Mon, 15 Feb 2021 22:56:58 +0000 (17:56 -0500)
committerSage Weil <sage@newdream.net>
Sun, 21 Feb 2021 13:52:17 +0000 (07:52 -0600)
commit0e68e8c956c00bca0690875dcdb0f6b99886bd97
tree44658d1f749a413f501cdf79984dbdd7ec395cfa
parent557d14805bff264bef28164c53439337fc1a724c
mon: convert ConfigKeyService -> KVMonitor

Convert this into a normal PaxosService.  This gives us (1) code uniformity
and also (2) a changelog in the form of the paxos commits for recently
changed keys that we can use to allow clients to subscribe to changes.

For upgrades this is pretty painless:
 - the actual kv data is in the same place
 - an old mon will still see updates made by a new monitor
 - a new mon will still see updates made by an old monitor, but won't get
   a paxosservice version bump.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit bb7ebc41532aeb23cff2241ab07b3f01c2f57ddd)
12 files changed:
src/mon/AuthMonitor.cc
src/mon/CMakeLists.txt
src/mon/ConfigKeyService.cc [deleted file]
src/mon/ConfigKeyService.h [deleted file]
src/mon/ConfigMonitor.cc
src/mon/KVMonitor.cc [new file with mode: 0644]
src/mon/KVMonitor.h [new file with mode: 0644]
src/mon/MonCommands.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/OSDMonitor.cc
src/mon/mon_types.h