From b1441705445434dc9069da778edd72e8fd7de8de Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 26 Sep 2013 15:01:03 +0800 Subject: [PATCH] mds: properly return log replay error The only context that should see this is C_MDS_BootStart, and it is prepared for failures, so there's no reason to always return 0. Signed-off-by: Yan, Zheng Reviewed-by: Greg Farnum --- src/mds/MDLog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDLog.cc b/src/mds/MDLog.cc index 1ace72e0ac378..bd89da7149528 100644 --- a/src/mds/MDLog.cc +++ b/src/mds/MDLog.cc @@ -605,7 +605,7 @@ void MDLog::_replay_thread() } dout(10) << "_replay_thread kicking waiters" << dendl; - finish_contexts(g_ceph_context, waitfor_replay, 0); + finish_contexts(g_ceph_context, waitfor_replay, r); dout(10) << "_replay_thread finish" << dendl; mds->mds_lock.Unlock(); -- 2.39.5