From 7e3084eb178601aea4402bd2434d06a91f978d47 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 1 Oct 2013 16:24:20 -0700 Subject: [PATCH] osd/ReplicatedPG: mark objects dirty in make_writeable() Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 960305bd21e..20d589e0a2a 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3987,6 +3987,9 @@ void ReplicatedPG::make_writeable(OpContext *ctx) dout(20) << "make_writeable " << soid << " snapset=" << ctx->snapset << " snapc=" << snapc << dendl;; + // we will mark the object dirty + ctx->new_obs.oi.set_flag(object_info_t::FLAG_DIRTY); + // use newer snapc? if (ctx->new_snapset.seq > snapc.seq) { snapc.seq = ctx->new_snapset.seq; -- 2.47.3