]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG::remove_snap_mapped_object: use pg_whoami.shard
authorSamuel Just <sam.just@inktank.com>
Mon, 10 Feb 2014 22:04:30 +0000 (14:04 -0800)
committerSamuel Just <sam.just@inktank.com>
Mon, 17 Feb 2014 22:25:33 +0000 (14:25 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index 166dd8a715b222beedb541eb3a5b130506d5b5d8..0ba7cadc652ab25829a31f0b1729ad7fded0361c 100644 (file)
@@ -303,7 +303,9 @@ bool PG::proc_replica_info(int from, const pg_info_t &oinfo)
 void PG::remove_snap_mapped_object(
   ObjectStore::Transaction &t, const hobject_t &soid)
 {
-  t.remove(coll, soid);
+  t.remove(
+    coll,
+    ghobject_t(soid, ghobject_t::NO_GEN, pg_whoami.shard));
   clear_object_snap_mapping(&t, soid);
 }