]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG::RecoveryState::Stray::react(LogEvt&): set dirty_info/log
authorSamuel Just <sam.just@inktank.com>
Mon, 16 Jul 2012 20:14:43 +0000 (13:14 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 16 Jul 2012 21:18:22 +0000 (14:18 -0700)
We adjust the info and the log, so we must set dirty_info and
dirty_log to force writes.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index ecb88c7364103a23b39728512cd29871add33bdb..803468833a306b5eecf0e28b67289b0d7d07cc7a 100644 (file)
@@ -4897,6 +4897,8 @@ boost::statechart::result PG::RecoveryState::Stray::react(const MLogRec& logevt)
     pg->info = msg->info;
     pg->osd->reg_last_pg_scrub(pg->info.pgid,
                               pg->info.history.last_scrub_stamp);
+    pg->dirty_info = true;
+    pg->dirty_log = true;
     pg->log.claim_log(msg->log);
     pg->missing.clear();
   } else {