diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:29 +0000 |
commit | df4528d6668ab18e40584fe540355bdfba0fb6dd (patch) | |
tree | f1bfdcb6485edff853369405dd5423c662c47345 /debian/patches/mds-purgequeue-use_uint64_t.patch | |
parent | Adding upstream version 14.2.21. (diff) | |
download | ceph-df4528d6668ab18e40584fe540355bdfba0fb6dd.tar.xz ceph-df4528d6668ab18e40584fe540355bdfba0fb6dd.zip |
Adding debian version 14.2.21-1.debian/14.2.21-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/mds-purgequeue-use_uint64_t.patch')
-rw-r--r-- | debian/patches/mds-purgequeue-use_uint64_t.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/mds-purgequeue-use_uint64_t.patch b/debian/patches/mds-purgequeue-use_uint64_t.patch new file mode 100644 index 00000000..8797da21 --- /dev/null +++ b/debian/patches/mds-purgequeue-use_uint64_t.patch @@ -0,0 +1,31 @@ +Index: ceph/src/mds/PurgeQueue.cc +=================================================================== +--- ceph.orig/src/mds/PurgeQueue.cc ++++ ceph/src/mds/PurgeQueue.cc +@@ -499,7 +499,7 @@ void PurgeQueue::_execute_item( + + in_flight[expire_to] = item; + logger->set(l_pq_executing, in_flight.size()); +- files_high_water = std::max(files_high_water, in_flight.size()); ++ files_high_water = std::max(files_high_water, static_cast<uint64_t>(in_flight.size())); + logger->set(l_pq_executing_high_water, files_high_water); + auto ops = _calculate_ops(item); + ops_in_flight += ops; +@@ -577,7 +577,7 @@ void PurgeQueue::_execute_item( + logger->set(l_pq_executing_ops_high_water, ops_high_water); + in_flight.erase(expire_to); + logger->set(l_pq_executing, in_flight.size()); +- files_high_water = std::max(files_high_water, in_flight.size()); ++ files_high_water = std::max(files_high_water, static_cast<uint64_t>(in_flight.size())); + logger->set(l_pq_executing_high_water, files_high_water); + return; + } +@@ -654,7 +654,7 @@ void PurgeQueue::_execute_item_complete( + + in_flight.erase(iter); + logger->set(l_pq_executing, in_flight.size()); +- files_high_water = std::max(files_high_water, in_flight.size()); ++ files_high_water = std::max(files_high_water, static_cast<uint64_t>(in_flight.size())); + logger->set(l_pq_executing_high_water, files_high_water); + dout(10) << "in_flight.size() now " << in_flight.size() << dendl; + |