]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
store_test: fix hobject_t construction
authorSamuel Just <samuel.just@dreamhost.com>
Fri, 2 Sep 2011 00:16:01 +0000 (17:16 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Fri, 2 Sep 2011 22:06:36 +0000 (15:06 -0700)
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/test/store_test.cc

index a3c9f529e56f97c3891bb9ed797700fe6aea9753..10fb6564dc2c2e71c0b77da14a17a1f81b66669a 100644 (file)
@@ -253,7 +253,7 @@ public:
     // hash
     //boost::binomial_distribution<uint32_t> bin(0xFFFFFF, 0.5);
     ++seq;
-    return hobject_t(name, CEPH_NOSNAP, rand());
+    return hobject_t(name, string(), CEPH_NOSNAP, rand());
   }
 };
 
@@ -469,7 +469,7 @@ TEST_F(StoreTest, HashCollisionTest) {
     if (!(i % 5)) {
       cerr << "Object " << i << std::endl;
     }
-    hobject_t hoid(string(buf) + base, CEPH_NOSNAP, 0);
+    hobject_t hoid(string(buf) + base, string(), CEPH_NOSNAP, 0);
     {
       ObjectStore::Transaction t;
       t.touch(cid, hoid);