]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_smalliobenchfs: use explicit ghobject_t ctor
authorSage Weil <sage@redhat.com>
Thu, 18 Jun 2015 23:37:52 +0000 (16:37 -0700)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:37:58 +0000 (17:37 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/bench/testfilestore_backend.cc

index 9174c348ae06389730f363054d0be0ad5556844d..2ce1f8726956a5ccb9bd16c7d1bfd1b902aaca47 100644 (file)
@@ -45,14 +45,14 @@ void TestFileStoreBackend::write(
 
   hobject_t h(sobject_t(oid.substr(sep+1), 0));
   h.pool = 0;
-  t->write(c, h, offset, bl.length(), bl);
+  t->write(c, ghobject_t(h), offset, bl.length(), bl);
 
   if (write_infos) {
     bufferlist bl2;
     for (uint64_t j = 0; j < 128; ++j) bl2.append(0);
     coll_t meta;
     hobject_t info(sobject_t(string("info_")+coll_str, 0));
-    t->write(meta, info, 0, bl2.length(), bl2);
+    t->write(meta, ghobject_t(info), 0, bl2.length(), bl2);
   }
 
   os->queue_transaction(
@@ -77,6 +77,6 @@ void TestFileStoreBackend::read(
   assert(valid_coll);
   hobject_t h(sobject_t(oid.substr(sep+1), 0));
   h.pool = 0;
-  os->read(c, h, offset, length, *bl);
+  os->read(c, ghobject_t(h), offset, length, *bl);
   finisher.queue(on_complete);
 }