]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/test: prevent being a normal object during ManifestFlushSnap (unit test)
authormyoungwon oh <ohmyoungwon@gmail.com>
Wed, 10 Feb 2021 06:33:32 +0000 (15:33 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:13:54 +0000 (17:13 +0900)
Now, modifying object when creating snapshot triggers to remove
the corresponding chunk in chunk_map.
This results in tranforming a manifest object to a normal object
if there are no chunks in chunk_map.
To avoid this, another set_chunk() is added.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/librados/tier_cxx.cc

index d3cd46a908980631896806dd372d9287f592b258..fd342e5c3380c9f8aeac78dd5292108b1a6dbfc2 100644 (file)
@@ -5037,6 +5037,7 @@ TEST_F(LibRadosTwoPoolsPP, ManifestFlushSnap) {
 
   // set-chunk (dedup)
   manifest_set_chunk(cluster, ioctx, cache_ioctx, 2, 2, "bar", "foo");
+  manifest_set_chunk(cluster, ioctx, cache_ioctx, 6, 2, "bar", "foo");
 
   // create a snapshot, clone
   vector<uint64_t> my_snaps(1);