]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ScrubStore: do not use temp collection
authorSage Weil <sage@redhat.com>
Fri, 26 Feb 2016 16:25:44 +0000 (11:25 -0500)
committerSage Weil <sage@redhat.com>
Fri, 11 Mar 2016 15:41:37 +0000 (10:41 -0500)
Temp collections are deprecated, and used only internally by
FileStore for compat reasons.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ScrubStore.cc

index 84865c1e4b68a72ef187cab4e8aaff6abd3d5ecc..45571892886c4afe563b4bcb60f98d0d86d8d212 100644 (file)
@@ -102,9 +102,8 @@ Store::create(ObjectStore* store,
   assert(store);
   assert(t);
   hobject_t oid = make_scrub_object(pgid);
-  coll_t temp_coll = coll.get_temp();
-  t->touch(temp_coll, ghobject_t{oid});
-  return new Store{temp_coll, oid, store};
+  t->touch(coll, ghobject_t{oid});
+  return new Store{coll, oid, store};
 }
 
 Store::Store(const coll_t& coll, const hobject_t& oid, ObjectStore* store)