diff options
author | Sage Weil <sage@inktank.com> | 2013-10-01 16:24:20 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-10-01 16:24:20 -0700 |
commit | 7e3084eb178601aea4402bd2434d06a91f978d47 (patch) | |
tree | 9fff045a766de1bce0dfbd9e5c6a9cc418f511b4 | |
parent | d42d2b97cf528a7211986241126bcc15c2ead35a (diff) | |
download | ceph-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.cc | 3 |
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; |