From: Sage Weil Date: Mon, 6 Jun 2016 18:30:45 +0000 (-0400) Subject: ceph_test_objectstore: randomly vary object size and write size hints X-Git-Tag: v11.0.0~160^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab81564bb82b8cbeee8a97e460bfdd26546521d6;p=ceph.git ceph_test_objectstore: randomly vary object size and write size hints Signed-off-by: Sage Weil --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 3e3a391a9366..08d4b24d6514 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -3196,7 +3196,12 @@ public: available_objects.erase(new_obj); ObjectStore::Transaction *t = new ObjectStore::Transaction; t->touch(cid, new_obj); - t->set_alloc_hint(cid, new_obj, 0, 0, get_random_alloc_hints()); + boost::uniform_int<> u(17, 22); + boost::uniform_int<> v(12, 17); + t->set_alloc_hint(cid, new_obj, + 1ull << u(*rng), + 1ull << v(*rng), + get_random_alloc_hints()); ++in_flight; in_flight_objects.insert(new_obj); if (!contents.count(new_obj))