PG::remove_snap_mapped_object: use pg_whoami.shard

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-02-10 14:04:30 -08:00
parent fd9da00edc
commit 0e7b10ac9b

View 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);
}