]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
bluestore/fio: Fixed problem with all objects having the same hash
authorAdam Kupczyk <akupczyk@redhat.com>
Mon, 18 Sep 2017 06:00:39 +0000 (08:00 +0200)
committerAdam Kupczyk <akupczyk@redhat.com>
Mon, 18 Sep 2017 06:06:40 +0000 (08:06 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/test/fio/fio_ceph_objectstore.cc

index 1b1078241a52ad5d54a3e2af721511ce40c4b538..474c109d4469c0484c69ce9abec344fc478617d1 100644 (file)
@@ -179,7 +179,9 @@ struct Object {
   Collection& coll;
 
   Object(const char* name, Collection& coll)
-    : oid(hobject_t(name, "", CEPH_NOSNAP, coll.pg.ps(), coll.pg.pool(), "")),
+    : oid(hobject_t(name, "", CEPH_NOSNAP,
+                    ceph_str_hash(CEPH_STR_HASH_RJENKINS, name, strlen(name)),
+                    coll.pg.pool(), "")),
       coll(coll) {}
 };