]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/monitoring/persistent_stats_history.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / monitoring / persistent_stats_history.cc
index 86fe98f1fc0f8a9012edc362902bc33b439e7b80..f4c022148c865d8a676522b3f601ffe358dcf7da 100644 (file)
@@ -11,6 +11,7 @@
 #include <cstring>
 #include <string>
 #include <utility>
+
 #include "db/db_impl/db_impl.h"
 #include "util/string_util.h"
 
@@ -98,13 +99,13 @@ std::pair<uint64_t, std::string> parseKey(const Slice& key,
   std::string::size_type pos = key_str.find("#");
   // TODO(Zhongyi): add counters to track parse failures?
   if (pos == std::string::npos) {
-    result.first = port::kMaxUint64;
+    result.first = std::numeric_limits<uint64_t>::max();
     result.second.clear();
   } else {
     uint64_t parsed_time = ParseUint64(key_str.substr(0, pos));
     // skip entries with timestamp smaller than start_time
     if (parsed_time < start_time) {
-      result.first = port::kMaxUint64;
+      result.first = std::numeric_limits<uint64_t>::max();
       result.second = "";
     } else {
       result.first = parsed_time;