summaryrefslogtreecommitdiffstats
path: root/debian/patches/mds-purgequeue-use_uint64_t.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/mds-purgequeue-use_uint64_t.patch31
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;
+