]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
{os,mds,common}: Disambiguate std::max and ceph::max
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 26 Jul 2017 22:08:05 +0000 (18:08 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 Aug 2017 02:39:20 +0000 (22:39 -0400)
There will be a more thorough reckoning regarding namespaces later.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mds/Locker.cc
src/mds/PurgeQueue.cc
src/os/bluestore/BlueStore.cc
src/tools/rebuild_mondb.cc

index 5656e3a5e8449d15976c6e309eea0046ed4a2c9e..b82beb4e2158b024230bdf93296ffad72abdb96c 100644 (file)
@@ -2328,7 +2328,7 @@ bool Locker::check_inode_max_size(CInode *in, bool force_wrlock,
       update_size = false;
   }
 
-  calc_new_client_ranges(in, max(new_max_size, size), &new_ranges, &max_increased);
+  calc_new_client_ranges(in, ceph::max(new_max_size, size), &new_ranges, &max_increased);
 
   if (max_increased || latest->client_ranges != new_ranges)
     update_max = true;
index f520240da3dae16647c4a808b9d2bce720bfb68f..bdea6ac28108b537390574f11baa5599b490d14b 100644 (file)
@@ -599,7 +599,7 @@ bool PurgeQueue::drain(
     max_purge_ops = 0xffff;
   }
 
-  drain_initial = max(bytes_remaining, drain_initial);
+  drain_initial = ceph::max(bytes_remaining, drain_initial);
 
   *progress = drain_initial - bytes_remaining;
   *progress_total = drain_initial;
index e74ea82c1a79f0367d7a5229a69cd437acc8655e..587e3b10e7e0cc54edaff2fc1eb1341f1eb24706 100644 (file)
@@ -728,7 +728,7 @@ int64_t BlueStore::GarbageCollector::estimate(
 
       // update gc_start_offset/gc_end_offset if needed
       gc_start_offset = min(gc_start_offset, (uint64_t)it->e.blob_start());
-      gc_end_offset = max(gc_end_offset, (uint64_t)it->e.blob_end());
+      gc_end_offset = ceph::max(gc_end_offset, (uint64_t)it->e.blob_end());
 
       auto o = it->e.logical_offset;
       auto l = it->e.length;
index 1d070fc230de1e92f2cefb96a5acabd4689bbc9c..e38ac97cbf40f80270b850a2df2743183f55cc91 100644 (file)
@@ -241,7 +241,7 @@ int update_osdmap(ObjectStore& fs, OSDSuperblock& sb, MonitorDBStore& ms)
   unsigned nadded = 0;
 
   OSDMap osdmap;
-  for (auto e = max(last_committed+1, sb.oldest_map);
+  for (auto e = ceph::max(last_committed+1, sb.oldest_map);
        e <= sb.newest_map; e++) {
     bool have_crc = false;
     uint32_t crc = -1;