]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: mark objects dirty in make_writeable()
authorSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 23:24:20 +0000 (16:24 -0700)
committerSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 23:24:20 +0000 (16:24 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 960305bd21e3ba5283f040f7e3bf3336c4706965..20d589e0a2ae66eaa8e4bfacf72e464b2f17fde0 100644 (file)
@@ -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;