]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/objectstore/store_test_fixture.cc: Exclude bluestore code if required. 14085/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 22 Mar 2017 14:03:32 +0000 (15:03 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 22 Mar 2017 14:03:32 +0000 (15:03 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/objectstore/store_test_fixture.cc

index 898f2732244050dea354feddc9a7e505ca557a0a..e80bde8315e7674ee4520c251cd9745ce88b4cd8 100644 (file)
@@ -5,7 +5,9 @@
 
 #include "common/errno.h"
 #include "os/ObjectStore.h"
+#if defined(HAVE_LIBAIO)
 #include "os/bluestore/BlueStore.h"
+#endif
 #include "store_test_fixture.h"
 
 static void rm_r(const string& path) {
@@ -40,11 +42,13 @@ void StoreTestFixture::SetUp() {
     cerr << __func__ << ": objectstore type " << type << " doesn't exist yet!" << std::endl;
   }
   ASSERT_TRUE(store);
+#if defined(HAVE_LIBAIO)
   if (type == "bluestore") {
     BlueStore *s = static_cast<BlueStore*>(store.get());
     // better test coverage!
     s->set_cache_shards(5);
   }
+#endif
   ASSERT_EQ(0, store->mkfs());
   ASSERT_EQ(0, store->mount());
 }