]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: init filestore_kill_at in ctor
authorSage Weil <sage.weil@dreamhost.com>
Thu, 12 Apr 2012 17:51:14 +0000 (10:51 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 14 Apr 2012 03:38:20 +0000 (20:38 -0700)
Otherwise we don't get the option for FileStore instances created after
common_init_finish() (which does md_config_t::call_all_observers()).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/os/FileStore.cc

index f2821971f0f54111bdc823be077c337304c4b8cd..a6910b1dde0a3e8135e06d3ee3c151d0f636e391 100644 (file)
@@ -701,6 +701,8 @@ FileStore::FileStore(const std::string &base, const std::string &jdev, const cha
   m_filestore_queue_committing_max_ops(g_conf->filestore_queue_committing_max_ops),
   m_filestore_queue_committing_max_bytes(g_conf->filestore_queue_committing_max_bytes)
 {
+  m_filestore_kill_at.set(g_conf->filestore_kill_at);
+
   ostringstream oss;
   oss << basedir << "/current";
   current_fn = oss.str();