]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Keep journaler in readonly mode until replay completes.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 21 Jan 2011 19:07:52 +0000 (11:07 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Sat, 22 Jan 2011 02:01:23 +0000 (18:01 -0800)
Previously we were switching it off for the final non-standby replay
when a standby-replay got activated. This caused issues
since the states weren't quite correct!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/MDS.cc

index 79372a6a2bc6fda2c342fcd3387378062b8f013d..21d7ff74d2b8813540909a466da6438837a633d4 100644 (file)
@@ -1272,12 +1272,13 @@ void MDS::replay_done()
   }
 
   if (continue_replay) {
-    mdlog->get_journaler()->set_writeable();
     continue_replay = false;
     standby_replay_restart();
     return;
   }
 
+  mdlog->get_journaler()->set_writeable();
+
   if (g_conf.mds_wipe_sessions) {
     dout(1) << "wiping out client sessions" << dendl;
     sessionmap.wipe();