From: Kefu Chai Date: Sat, 29 Jun 2019 11:52:45 +0000 (+0800) Subject: crimson/osd: abort on unsupported objectstore type X-Git-Tag: v15.1.0~2343^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d5dbee1ff675d409f2c633d0386e989e3933d3c7;p=ceph-ci.git crimson/osd: abort on unsupported objectstore type Signed-off-by: Kefu Chai --- diff --git a/src/crimson/os/futurized_store.cc b/src/crimson/os/futurized_store.cc index e6883b39811..49294b728bc 100644 --- a/src/crimson/os/futurized_store.cc +++ b/src/crimson/os/futurized_store.cc @@ -8,9 +8,10 @@ std::unique_ptr FuturizedStore::create(const std::string& type, { if (type == "memstore") { return std::make_unique(data); + } else { + ceph_abort_msgf("unsupported objectstore type: %s", type.c_str()); + return {}; } - - return nullptr; } }