]> 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>
Wed, 17 Feb 2021 17:27:58 +0000 (12:27 -0500)
commitbb7ebc41532aeb23cff2241ab07b3f01c2f57ddd
tree1fc90c6613202d851684eea7056742d62ddeba98
parent70ba94744a9b3253431f9be4da26a30c44d419c1
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>
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