From: myoungwon oh Date: Mon, 3 Aug 2020 05:35:21 +0000 (+0900) Subject: src/test: prevent truncate from using write_full X-Git-Tag: v16.1.0~1248^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fcfb4e1b2acb055c3068e1c1ebd6be212ceb5095;p=ceph.git src/test: prevent truncate from using write_full Use write instead of write_full to avoid truncate even if set-chunk is set Signed-off-by: Myoungwon Oh --- diff --git a/src/test/librados/tier_cxx.cc b/src/test/librados/tier_cxx.cc index df584a922b0..987820291a5 100644 --- a/src/test/librados/tier_cxx.cc +++ b/src/test/librados/tier_cxx.cc @@ -4073,8 +4073,7 @@ TEST_F(LibRadosTwoPoolsPP, ManifestSnapRefcount2) { bufferlist bl; bl.append("Thabe cd"); ObjectWriteOperation op; - op.write_full(bl); - ASSERT_EQ(0, ioctx.operate("foo", &op)); + ASSERT_EQ(0, ioctx.write("foo", bl, bl.length(), 0)); } // flush { @@ -4299,8 +4298,7 @@ TEST_F(LibRadosTwoPoolsPP, ManifestFlushSnap) { bufferlist bl; bl.append("There"); ObjectWriteOperation op; - op.write_full(bl); - ASSERT_EQ(0, ioctx.operate("foo", &op)); + ASSERT_EQ(0, ioctx.write("foo", bl, bl.length(), 0)); } // create a snapshot, clone