mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
Merge pull request #22544 from ifed01/wip-ifed-alloc-bench-fix
test/objectstore: fix random generator in allocator_bench. Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
This commit is contained in:
commit
4fe976db22
@ -68,7 +68,7 @@ class AllocTracker
|
||||
|
||||
public:
|
||||
AllocTracker(uint64_t capacity, uint64_t alloc_unit)
|
||||
: u1(capacity, alloc_unit)
|
||||
: u1(0, capacity)
|
||||
{
|
||||
assert(alloc_unit >= 0x100);
|
||||
assert(capacity <= (uint64_t(1) << 48)); // we use 5 octets (bytes 1 - 5) to store
|
||||
|
Loading…
Reference in New Issue
Block a user