]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_objectstore: complain if SMR support not compiled in
authorAdam Kupczyk <akupczyk@redhat.com>
Fri, 17 Sep 2021 10:22:58 +0000 (12:22 +0200)
committerSage Weil <sage@newdream.net>
Fri, 29 Oct 2021 13:56:42 +0000 (09:56 -0400)
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/test/objectstore/store_test.cc

index 39272aec9fe4e9909bd9f21216b4da02b14aa6ca..cc5d3059c00af3662a095f0232be1232f8e86bb2 100644 (file)
@@ -9627,8 +9627,13 @@ int main(int argc, char **argv) {
 
   for (auto& i : args) {
     if (i == "--smr"s) {
-      derr << "smr" << dendl;
+#if defined(HAVE_LIBZBD)
+      derr << "Adjusting tests for smr mode." << dendl;
       smr = true;
+#else
+      derr << "smr mode selected, but support not compiled in" << dendl;
+      return 1;
+#endif
     }
   }