]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix infinite loop in OpTracker::check_ops_in_flight 26048/head
authorYan, Zheng <zyan@redhat.com>
Mon, 21 Jan 2019 02:08:51 +0000 (10:08 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 21 Jan 2019 02:10:12 +0000 (10:10 +0800)
introduced by backport commit 02faf3dc321
"mds: don't report slow request for blocked filelock request"

Fixes: http://tracker.ceph.com/issues/37977
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/common/TrackedOp.cc

index 4ed2fa48bd6f3f515835770045678a2bbcc5b25f..d3c3c4699662b472e16047cf753d940e57d92ab8 100644 (file)
@@ -342,8 +342,10 @@ bool OpTracker::check_ops_in_flight(std::vector<string> &warning_vector, int *sl
     while (i != sdata->ops_in_flight_sharded.end() &&
           i->get_initiated() < too_old) {
 
-      if (!i->warn_interval_multiplier)
+      if (!i->warn_interval_multiplier) {
        continue;
+       ++i;
+      }
 
       (*slow)++;