From d833b9ec64e8715b7d1496a9f715a1501d8404d2 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Wed, 10 Feb 2021 15:33:32 +0900 Subject: [PATCH] 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 --- src/test/librados/tier_cxx.cc | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5