]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / test / librbd / deep_copy / test_mock_SnapshotCopyRequest.cc
index 6a52898220a73c73bb1fb01ffbe30a1562ee933e..0190c338ab03e3939415d83f66ae36d54c60766a 100644 (file)
@@ -252,8 +252,7 @@ public:
     }
 
     if (protect) {
-      EXPECT_TRUE(boost::get<cls::rbd::UserSnapshotNamespace>(&snap_ns) !=
-                    nullptr);
+      EXPECT_TRUE(std::holds_alternative<cls::rbd::UserSnapshotNamespace>(snap_ns));
       r = image_ctx->operations->snap_protect(snap_ns, snap_name.c_str());
       if (r < 0) {
         return r;