diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2020-01-16 00:59:01 +0100 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2020-01-21 02:06:19 +0100 |
commit | 458f383cf2ac8bf06825248846011355e1c3de58 (patch) | |
tree | 95bfc1667dd0071d9ec88f6fe8270145f7843ad3 /src/mds/PurgeQueue.h | |
parent | qa: use correct variable for exception debug (diff) | |
download | ceph-458f383cf2ac8bf06825248846011355e1c3de58.tar.xz ceph-458f383cf2ac8bf06825248846011355e1c3de58.zip |
mds: track high water mark for purges
This makes the corresponding test not racy.
Fixes: https://tracker.ceph.com/issues/16881
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src/mds/PurgeQueue.h')
-rw-r--r-- | src/mds/PurgeQueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mds/PurgeQueue.h b/src/mds/PurgeQueue.h index c1c6c10202e..4ccc2ac1042 100644 --- a/src/mds/PurgeQueue.h +++ b/src/mds/PurgeQueue.h @@ -85,7 +85,9 @@ enum { // How many items have been finished by PurgeQueue l_pq_executing_ops, + l_pq_executing_ops_high_water, l_pq_executing, + l_pq_executing_high_water, l_pq_executed, l_pq_item_in_journal, l_pq_last @@ -215,5 +217,8 @@ private: std::vector<Context*> waiting_for_recovery; size_t purge_item_journal_size; + + uint64_t ops_high_water = 0; + uint64_t files_high_water = 0; }; #endif |