Skip to content

Commit

Permalink
tests/bluestore_types: Fixed data generation bluestore_blob_t::releas…
Browse files Browse the repository at this point in the history
…e_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 <akupczyk@ibm.com>
  • Loading branch information
aclamk committed Aug 7, 2024
1 parent 8bd233b commit 7b0d27e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/objectstore/test_bluestore_types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7b0d27e

Please sign in to comment.