Merge PR #23062 into master

* refs/pull/23062/head:
	mds: dump recent events on respawn

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Patrick Donnelly 2018-07-20 20:18:11 -07:00
commit 0a4959318e
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -1083,6 +1083,10 @@ void MDSDaemon::respawn()
{
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++) {