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 <kchai@redhat.com>
(cherry picked from commit
3dd052c4558144d7252aa8a856c1601ea17b74e7)
if (type == "memstore") {
return std::make_unique<crimson::os::CyanStore>(data);
} else if (type == "bluestore") {
+#ifdef SEASTAR_DEFAULT_ALLOCATOR
return std::make_unique<crimson::os::AlienStore>(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 {};