diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-23 16:45:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-23 16:45:44 +0000 |
commit | 17d6a993fc17d533460c5f40f3908c708e057c18 (patch) | |
tree | 1a3bd93e0ecd74fa02f93a528fe2f87e5314c4b5 /src/mds/SessionMap.h | |
parent | Releasing progress-linux version 18.2.2-0progress7.99u1. (diff) | |
download | ceph-17d6a993fc17d533460c5f40f3908c708e057c18.tar.xz ceph-17d6a993fc17d533460c5f40f3908c708e057c18.zip |
Merging upstream version 18.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/mds/SessionMap.h')
-rw-r--r-- | src/mds/SessionMap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h index ddf227be9..360dd66a2 100644 --- a/src/mds/SessionMap.h +++ b/src/mds/SessionMap.h @@ -314,6 +314,7 @@ public: bool trim_completed_requests(ceph_tid_t mintid) { // trim bool erased_any = false; + last_trim_completed_requests_tid = mintid; while (!info.completed_requests.empty() && (mintid == 0 || info.completed_requests.begin()->first < mintid)) { info.completed_requests.erase(info.completed_requests.begin()); @@ -339,6 +340,7 @@ public: } bool trim_completed_flushes(ceph_tid_t mintid) { bool erased_any = false; + last_trim_completed_flushes_tid = mintid; while (!info.completed_flushes.empty() && (mintid == 0 || *info.completed_flushes.begin() < mintid)) { info.completed_flushes.erase(info.completed_flushes.begin()); @@ -493,6 +495,9 @@ private: unsigned num_trim_flushes_warnings = 0; unsigned num_trim_requests_warnings = 0; + + ceph_tid_t last_trim_completed_requests_tid = 0; + ceph_tid_t last_trim_completed_flushes_tid = 0; }; class SessionFilter |