From: myoungwon oh Date: Wed, 10 Feb 2021 06:33:32 +0000 (+0900) Subject: src/test: prevent being a normal object during ManifestFlushSnap (unit test) X-Git-Tag: v17.1.0~2307^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d833b9ec64e8715b7d1496a9f715a1501d8404d2;p=ceph.git src/test: prevent being a normal object during ManifestFlushSnap (unit test) 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 --- diff --git a/src/test/librados/tier_cxx.cc b/src/test/librados/tier_cxx.cc index d3cd46a9089..fd342e5c338 100644 --- a/src/test/librados/tier_cxx.cc +++ b/src/test/librados/tier_cxx.cc @@ -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 my_snaps(1);