]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OpRequest: ignore all ops while the oldest one is still young.
authorSage Weil <sage@newdream.net>
Fri, 4 May 2012 21:15:59 +0000 (14:15 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 May 2012 21:15:59 +0000 (14:15 -0700)
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
Reviewed-by: Sage Weil <sage@newdream.net>
src/osd/OpRequest.cc

index 5203b57407d408cc842a9f6c565f2af5952ac90f..2ef2749dd137bf3292fa51156c661c30d0da7003 100644 (file)
@@ -81,6 +81,9 @@ bool OpTracker::check_ops_in_flight(std::vector<string> &warning_vector)
            << "; oldest is " << oldest_secs
            << " seconds old" << dendl;
 
+  if (oldest_secs < g_conf->osd_op_complaint_time)
+    return false;
+
   xlist<OpRequest*>::iterator i = ops_in_flight.begin();
   warning_vector.reserve(g_conf->osd_op_log_threshold + 1);
   warning_vector.push_back("");