crimson/osd/pg_backend: clear exists in remove

Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
Samuel Just 2019-05-30 10:53:36 -07:00
parent 8864de8164
commit 1b22a8313a

View File

@ -282,6 +282,7 @@ seastar::future<> PGBackend::remove(ObjectState& os,
txn.remove(coll->cid, ghobject_t{os.oi.soid, ghobject_t::NO_GEN, shard});
os.oi.size = 0;
os.oi.new_object();
os.exists = false;
// todo: update watchers
if (os.oi.is_whiteout()) {
os.oi.clear_flag(object_info_t::FLAG_WHITEOUT);