From ce60e1be21f938a6f8c0125ef666f96d3eec9421 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 4 May 2012 14:15:59 -0700 Subject: [PATCH] OpRequest: ignore all ops while the oldest one is still young. Signed-off-by: Joao Eduardo Luis Reviewed-by: Sage Weil --- src/osd/OpRequest.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/OpRequest.cc b/src/osd/OpRequest.cc index 5203b57407d40..2ef2749dd137b 100644 --- a/src/osd/OpRequest.cc +++ b/src/osd/OpRequest.cc @@ -81,6 +81,9 @@ bool OpTracker::check_ops_in_flight(std::vector &warning_vector) << "; oldest is " << oldest_secs << " seconds old" << dendl; + if (oldest_secs < g_conf->osd_op_complaint_time) + return false; + xlist::iterator i = ops_in_flight.begin(); warning_vector.reserve(g_conf->osd_op_log_threshold + 1); warning_vector.push_back(""); -- 2.39.5