]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/bufferlist: verify vebuild_aligned_size_and_memory makes contiguous 65204/head
authorIgor Fedotov <igor.fedotov@croit.io>
Mon, 25 Aug 2025 11:38:10 +0000 (14:38 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Mon, 25 Aug 2025 11:38:10 +0000 (14:38 +0300)
buferlist when explicitly requested.

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/test/bufferlist.cc

index a083ad75f095c9b83289e70d8f1ae915d05c1a44..9fe4b8841897d08da4babed3acc8e5b1976044dd 100644 (file)
@@ -1867,6 +1867,9 @@ TEST(BufferList, rebuild_aligned_size_and_memory) {
   EXPECT_TRUE(bl.is_n_align_sized(BUFFER_SIZE));
   EXPECT_EQ(3U, bl.get_num_buffers());
 
+  bl.rebuild_aligned_size_and_memory(BUFFER_SIZE, SIMD_ALIGN, 1);
+  EXPECT_EQ(1U, bl.get_num_buffers());
+
   {
     /* bug replicator, to test rebuild_aligned_size_and_memory() in the
      * scenario where the first bptr is both size and memory aligned and