From ce7fed2926dc6498196f635727caac2ae78611be Mon Sep 17 00:00:00 2001 From: Yanhu Cao Date: Tue, 1 Aug 2017 10:44:57 +0800 Subject: [PATCH] ceph-osd: fix auto detect which objectstore is currently running Fixes: http://tracker.ceph.com/issues/20865 Signed-off-by: Yanhu Cao --- src/ceph_osd.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index f3d585b47759a..91a750a0a476f 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -246,6 +246,7 @@ int main(int argc, const char **argv) bl.read_fd(fd, 64); if (bl.length()) { store_type = string(bl.c_str(), bl.length() - 1); // drop \n + g_conf->set_val("osd_objectstore", store_type); dout(5) << "object store type is " << store_type << dendl; } ::close(fd); -- 2.39.5