]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix mkfs monmap cleanup
authorSage Weil <sage@inktank.com>
Tue, 18 Jun 2013 00:17:56 +0000 (17:17 -0700)
committerSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 04:07:25 +0000 (21:07 -0700)
exists_key(a,b) was looking for "monmap/mkfs/monmap".

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

index aa9d94fd8cc77f9d5f3685d73554a2ce64aced62..10faf093327cbc9343c9f0bb8ac79ee6d694c92d 100644 (file)
@@ -70,7 +70,7 @@ void MonmapMonitor::update_from_paxos(bool *need_bootstrap)
   dout(10) << "update_from_paxos got " << version << dendl;
   mon->monmap->decode(monmap_bl);
 
-  if (exists_key("mkfs", get_service_name())) {
+  if (mon->store->exists("mkfs", get_service_name())) {
     MonitorDBStore::Transaction t;
     erase_mkfs(&t);
     mon->store->apply_transaction(t);