]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-osd: fix auto detect which objectstore is currently running 16717/head
authorYanhu Cao <gmayyyha@gmail.com>
Tue, 1 Aug 2017 02:44:57 +0000 (10:44 +0800)
committerYanhu Cao <gmayyyha@gmail.com>
Tue, 1 Aug 2017 02:44:57 +0000 (10:44 +0800)
Fixes: http://tracker.ceph.com/issues/20865
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
src/ceph_osd.cc

index f3d585b47759a4d18b0c2600987edca7424d8ac8..91a750a0a476facd68433488bd96d3c733f84eaa 100644 (file)
@@ -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);