From: Kefu Chai Date: Sun, 14 Jun 2020 13:47:28 +0000 (+0800) Subject: crimson/os: disable alienized bluestore if using seastar allocator X-Git-Tag: v16.1.0~2066^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35561%2Fhead;p=ceph.git crimson/os: disable alienized bluestore if using seastar allocator before figuring out how to colocate alien store and seastar's builtin allocator. we need to disable alienized bluestore, if SEASTAR_DEFAULT_ALLOCATOR is not defined. See-also: https://tracker.ceph.com/issues/45985 Signed-off-by: Kefu Chai (cherry picked from commit 3dd052c4558144d7252aa8a856c1601ea17b74e7) --- diff --git a/src/crimson/os/futurized_store.cc b/src/crimson/os/futurized_store.cc index bb73c34787f12..e4c2670730eeb 100644 --- a/src/crimson/os/futurized_store.cc +++ b/src/crimson/os/futurized_store.cc @@ -12,7 +12,11 @@ FuturizedStore::create(const std::string& type, if (type == "memstore") { return std::make_unique(data); } else if (type == "bluestore") { +#ifdef SEASTAR_DEFAULT_ALLOCATOR return std::make_unique(data, values); +#else + #warning please define SEASTAR_DEFAULT_ALLOCATOR for using alien store +#endif } else { ceph_abort_msgf("unsupported objectstore type: %s", type.c_str()); return {};