From: Igor Fedotov Date: Wed, 13 Jun 2018 09:41:51 +0000 (+0300) Subject: test/objectstore: fix random generator in allocator_bench. X-Git-Tag: v14.0.1~1029^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1e987fb3df4f0e39da429d325e8eb3f66e78b5eb;p=ceph.git test/objectstore: fix random generator in allocator_bench. Signed-off-by: Igor Fedotov --- diff --git a/src/test/objectstore/Allocator_bench.cc b/src/test/objectstore/Allocator_bench.cc index bdd64800bb77..470fd32fc293 100755 --- a/src/test/objectstore/Allocator_bench.cc +++ b/src/test/objectstore/Allocator_bench.cc @@ -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