]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge PR #23062 into master
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 21 Jul 2018 03:18:11 +0000 (20:18 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 21 Jul 2018 03:18:11 +0000 (20:18 -0700)
* refs/pull/23062/head:
mds: dump recent events on respawn

Reviewed-by: Sage Weil <sage@redhat.com>
1  2 
src/mds/MDSDaemon.cc

index 7bf62ca036685faf61589ebe07ef225187f0f289,8cbcf9fac3d8f7febcfeb132ff551cad4f5b26a1..49281a5ce90485e4805c364d71c5d9fc0f9a6b27
@@@ -1081,8 -1080,12 +1081,12 @@@ void MDSDaemon::suicide(
  
  void MDSDaemon::respawn()
  {
 -  dout(1) << "respawn" << dendl;
 +  dout(1) << "respawn!" << dendl;
  
+   /* Dump recent in case the MDS was stuck doing something which caused it to
+    * be removed from the MDSMap leading to respawn. */
+   g_ceph_context->_log->dump_recent();
    char *new_argv[orig_argc+1];
    dout(1) << " e: '" << orig_argv[0] << "'" << dendl;
    for (int i=0; i<orig_argc; i++) {