]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/objectstore: fix random generator in allocator_bench. 22544/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 13 Jun 2018 09:41:51 +0000 (12:41 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Wed, 13 Jun 2018 09:44:56 +0000 (12:44 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/test/objectstore/Allocator_bench.cc

index bdd64800bb776cc7bae0e7170bdc7f8272031b9d..470fd32fc29384178a4aaff87c1eaa933d7f3d5c 100755 (executable)
@@ -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