]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: misc objectstore tests: use explicit ghobject_t ctor
authorSage Weil <sage@redhat.com>
Thu, 18 Jun 2015 23:39:51 +0000 (16:39 -0700)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:37:59 +0000 (17:37 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/streamtest.cc
src/test/test_trans.cc
src/test/xattr_bench.cc

index d4ccadf18e120d4fae570aed1543300397e5f603..7639a7668f8cbeb7f6f599091535b640e3f60135 100644 (file)
@@ -159,7 +159,7 @@ int main(int argc, const char **argv)
 
     set_start(pos, ceph_clock_now(g_ceph_context));
     ObjectStore::Transaction *t = new ObjectStore::Transaction;
-    t->write(coll_t(), hobject_t(poid), pos, bytes, bl);
+    t->write(coll_t(), ghobject_t(hobject_t(poid)), pos, bytes, bl);
     fs->queue_transaction(NULL, t, new C_Ack(pos), new C_Commit(pos));
     pos += bytes;
 
index 43821c13aecc38f7283c27b50988222597878ded..aa81840ba26d8687b8ed08524d61bcaafdd1cc80 100644 (file)
@@ -65,7 +65,7 @@ int main(int argc, const char **argv)
     char f[30];
     snprintf(f, sizeof(f), "foo%d\n", i);
     sobject_t soid(f, CEPH_NOSNAP);
-    t.write(coll_t(), hobject_t(soid), 0, bl.length(), bl);
+    t.write(coll_t(), ghobject_t(hobject_t(soid)), 0, bl.length(), bl);
   }
   
   dout(0) << "starting thread" << dendl;
index 38080000cce8929d8b54ec119ed984d86189890f..6cf3edd90964d7e911d4aa0caaaa9ac12da382ea 100644 (file)
@@ -100,7 +100,7 @@ uint64_t do_run(ObjectStore *store, int attrsize, int numattrs,
       stringstream obj_str;
       obj_str << i;
       t.touch(coll,
-             hobject_t(sobject_t(obj_str.str(), CEPH_NOSNAP)));
+             ghobject_t(hobject_t(sobject_t(obj_str.str(), CEPH_NOSNAP))));
       objects.insert(obj_str.str());
     }
     collections[coll] = make_pair(objects, new ObjectStore::Sequencer(coll.to_str()));
@@ -129,7 +129,7 @@ uint64_t do_run(ObjectStore *store, int attrsize, int numattrs,
        stringstream ss;
        ss << i << ", " << j << ", " << *obj;
        t->setattr(iter->first,
-                  hobject_t(sobject_t(*obj, CEPH_NOSNAP)),
+                  ghobject_t(hobject_t(sobject_t(*obj, CEPH_NOSNAP))),
                   ss.str().c_str(),
                   bl);
       }