]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonitorDBStore: add close() method
authorSage Weil <sage@redhat.com>
Sun, 10 Aug 2014 22:17:45 +0000 (15:17 -0700)
committerSage Weil <sage@redhat.com>
Wed, 27 Aug 2014 21:36:07 +0000 (14:36 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph_mon.cc
src/mon/MonitorDBStore.h

index e8ec3c51400f2218f91ebc7f3e7043a93e2b7a31..87f829bbbd445cf040197fc9d7dfa1228475420c 100644 (file)
@@ -423,6 +423,7 @@ int main(int argc, const char **argv)
       cerr << argv[0] << ": error creating monfs: " << cpp_strerror(r) << std::endl;
       exit(1);
     }
+    store.close();
     cout << argv[0] << ": created monfs at " << g_conf->mon_data 
         << " for " << g_conf->name << std::endl;
     return 0;
@@ -738,6 +739,8 @@ int main(int argc, const char **argv)
 
   messenger->wait();
 
+  store->close();
+
   unregister_async_signal_handler(SIGHUP, sighup_handler);
   unregister_async_signal_handler(SIGINT, handle_mon_signal);
   unregister_async_signal_handler(SIGTERM, handle_mon_signal);
index a042be639f6991e79092b20a73c09ea47585507e..1d7f8259db383469001b3c73839b64bddda4bde3 100644 (file)
@@ -522,6 +522,9 @@ class MonitorDBStore
     return db->create_and_open(out);
   }
 
+  void close() {
+  }
+
   void compact() {
     db->compact();
   }