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:
Igor Fedotov 2018-06-25 19:17:28 +03:00 committed by GitHub
commit 4fe976db22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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