]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't spam log with standby_replay_restart messages 10243/head
authorJohn Spray <john.spray@redhat.com>
Thu, 7 Jul 2016 15:08:14 +0000 (16:08 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 19 Jul 2016 13:00:32 +0000 (14:00 +0100)
Fixes: http://tracker.ceph.com/issues/16195
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDSRank.cc

index 8aa884615edde8e1a15949f7abe39eb67d114b7e..4e9484378f2299a18a587a14646fcf0344d823ad 100644 (file)
@@ -1069,11 +1069,9 @@ void MDSRank::_standby_replay_restart_finish(int r, uint64_t old_read_pos)
 
 inline void MDSRank::standby_replay_restart()
 {
-  dout(1) << "standby_replay_restart"
-         << (standby_replaying ? " (as standby)":" (final takeover pass)")
-         << dendl;
   if (standby_replaying) {
     /* Go around for another pass of replaying in standby */
+    dout(4) << "standby_replay_restart (as standby)" << dendl;
     mdlog->get_journaler()->reread_head_and_probe(
       new C_MDS_StandbyReplayRestartFinish(
         this,
@@ -1081,6 +1079,7 @@ inline void MDSRank::standby_replay_restart()
   } else {
     /* We are transitioning out of standby: wait for OSD map update
        before making final pass */
+    dout(1) << "standby_replay_restart (final takeover pass)" << dendl;
     Context *fin = new C_OnFinisher(new C_IO_Wrapper(this,
           new C_MDS_BootStart(this, MDS_BOOT_PREPARE_LOG)),
       finisher);