]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os: let AlienStore adapt MemStore.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 21 Jul 2021 10:46:43 +0000 (10:46 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 21 Jul 2021 13:11:16 +0000 (13:11 +0000)
This is useful in perf testing and benchmarking as it allows,
through comparison with `CyanStore`, to judge to pentalty of
`AlienStore`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/os/ObjectStore.cc

index 75deb19662abc87e6b45e862510f46142f8d40c1..f0c7029f4326b94aee2f3c35db2b5b2415bd0af1 100644 (file)
@@ -19,8 +19,8 @@
 
 #ifndef  WITH_SEASTAR
 #include "filestore/FileStore.h"
-#include "memstore/MemStore.h"
 #endif
+#include "memstore/MemStore.h"
 #if defined(WITH_BLUESTORE)
 #include "bluestore/BlueStore.h"
 #endif
@@ -35,11 +35,9 @@ std::unique_ptr<ObjectStore> ObjectStore::create(
   const string& type,
   const string& data)
 {
-#ifndef WITH_SEASTAR
   if (type == "memstore") {
     return std::make_unique<MemStore>(cct, data);
   }
-#endif
 #if defined(WITH_BLUESTORE)
   if (type == "bluestore" || type == "random") {
     return std::make_unique<BlueStore>(cct, data);