From d5dbee1ff675d409f2c633d0386e989e3933d3c7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 29 Jun 2019 19:52:45 +0800 Subject: [PATCH] crimson/osd: abort on unsupported objectstore type Signed-off-by: Kefu Chai --- src/crimson/os/futurized_store.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.39.5