summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-10-01 16:24:20 -0700
committerSage Weil <sage@inktank.com>2013-10-01 16:24:20 -0700
commit7e3084eb178601aea4402bd2434d06a91f978d47 (patch)
tree9fff045a766de1bce0dfbd9e5c6a9cc418f511b4
parentd42d2b97cf528a7211986241126bcc15c2ead35a (diff)
downloadceph-7e3084eb178601aea4402bd2434d06a91f978d47.tar.gz
osd/ReplicatedPG: mark objects dirty in make_writeable()
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/osd/ReplicatedPG.cc3
1 files changed, 3 insertions, 0 deletions
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;