]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: abort on unsupported objectstore type 28790/head
authorKefu Chai <kchai@redhat.com>
Sat, 29 Jun 2019 11:52:45 +0000 (19:52 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 29 Jun 2019 12:03:20 +0000 (20:03 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/futurized_store.cc

index e6883b398117929b2cb870df54f3d9089d157ab0..49294b728bcd1d2a46e5b326c6f0350628c8fc9d 100644 (file)
@@ -8,9 +8,10 @@ std::unique_ptr<FuturizedStore> FuturizedStore::create(const std::string& type,
 {
   if (type == "memstore") {
     return std::make_unique<ceph::os::CyanStore>(data);
+  } else {
+    ceph_abort_msgf("unsupported objectstore type: %s", type.c_str());
+    return {};
   }
-
-  return nullptr;
 }
 
 }