diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2021-01-12 21:59:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-13 14:03:35 +0000 |
commit | 60b4db79b9171c60e15e92565f81b422063d8a75 (patch) | |
tree | 9e6f053050b7bf8a3141a0a36e4d48f0a22458cf /src/mongo/db/storage | |
parent | b59db98b6d214ee177f7fa4c08b2081bac46cb8a (diff) | |
download | mongo-60b4db79b9171c60e15e92565f81b422063d8a75.tar.gz |
SERVER-50232 Remove redundant condition from FlowControl::_approximateOpsBetween
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r-- | src/mongo/db/storage/flow_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/flow_control.cpp b/src/mongo/db/storage/flow_control.cpp index 40f003a0f44..d3a5a279c88 100644 --- a/src/mongo/db/storage/flow_control.cpp +++ b/src/mongo/db/storage/flow_control.cpp @@ -448,7 +448,7 @@ std::int64_t FlowControl::_approximateOpsBetween(Timestamp prevTs, Timestamp cur prevApplied = std::get<1>(sample); } - if (currApplied == -1 && currTs.asULL() <= std::get<0>(sample)) { + if (currTs.asULL() <= std::get<0>(sample)) { currApplied = std::get<1>(sample); break; } |