From c47f271de0547f21ef97fd3d2c07608a278b3e83 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 17 Jun 2013 17:17:56 -0700 Subject: [PATCH] mon: fix mkfs monmap cleanup exists_key(a,b) was looking for "monmap/mkfs/monmap". Signed-off-by: Sage Weil --- src/mon/MonmapMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index aa9d94fd8cc77..10faf093327cb 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -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); -- 2.39.5