From 7b0d27e12efd41d6d29f89101dc64b5a5e5f8005 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 29 Jul 2024 13:32:58 +0000 Subject: [PATCH] tests/bluestore_types: Fixed data generation bluestore_blob_t::release_extents The #1 and #2 elements could form a continuous sequence but still not joined: Expected equality of these values: result Which is: { 0x7b138000~48000, 0x883b0000~48000, 0xf0c10000~10000, 0x727b8000~38000 } mid Which is: { 0x7b138000~30000, 0x7b168000~18000, 0x883b0000~48000, 0xf0c10000~10000, 0x727b8000~38000 } Signed-off-by: Adam Kupczyk --- src/test/objectstore/test_bluestore_types.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/objectstore/test_bluestore_types.cc b/src/test/objectstore/test_bluestore_types.cc index b9e68f852b6..d5d70d14d83 100644 --- a/src/test/objectstore/test_bluestore_types.cc +++ b/src/test/objectstore/test_bluestore_types.cc @@ -3237,6 +3237,7 @@ TEST_P(bluestore_blob_t_test, release_extents) uint32_t a = (rand() % test_region_range) + 1; if (a > num_aus) a = num_aus; if (cont && cont->size() > 0 && cont->back().is_valid()) { + illegal_pos = cont->back().end() + a * alloc_unit; v.emplace_back(cont->back().end(), a * alloc_unit); cont = nullptr; } else { -- 2.47.3