]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: rename get_lower_bound to get_lower_bound_by_pool
authorMatan Breizman <mbreizma@redhat.com>
Wed, 31 Jan 2024 12:46:38 +0000 (12:46 +0000)
committerMykola Golub <mgolub@suse.com>
Fri, 1 Mar 2024 11:43:06 +0000 (13:43 +0200)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 1f89b685c0c5c4891b5587ff4e480a615e6f5a48)

src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h

index 8e39dd2d7116ed7fc96858a7b936edde6c2e50f4..1725a2e1ccec08f83d22f92ef96761f81b322dbf 100644 (file)
@@ -395,7 +395,7 @@ void LastEpochClean::report(unsigned pg_num, const pg_t& pg,
   return lec.report(pg_num, pg.ps(), last_epoch_clean);
 }
 
-epoch_t LastEpochClean::get_lower_bound(const OSDMap& latest) const
+epoch_t LastEpochClean::get_lower_bound_by_pool(const OSDMap& latest) const
 {
   auto floor = latest.get_epoch();
   for (auto& pool : latest.get_pools()) {
@@ -2287,7 +2287,7 @@ version_t OSDMonitor::get_trim_to() const
 
 epoch_t OSDMonitor::get_min_last_epoch_clean() const
 {
-  auto floor = last_epoch_clean.get_lower_bound(osdmap);
+  auto floor = last_epoch_clean.get_lower_bound_by_pool(osdmap);
   // also scan osd epochs
   // don't trim past the oldest reported osd epoch
   for (auto [osd, epoch] : osd_epochs) {
index 08aa4f61783b2bbf67aa0755c7be86ee8ee9264a..e3b91417650f84c14a6125b1985a01f4f5b7eca9 100644 (file)
@@ -114,7 +114,7 @@ class LastEpochClean {
 public:
   void report(unsigned pg_num, const pg_t& pg, epoch_t last_epoch_clean);
   void remove_pool(uint64_t pool);
-  epoch_t get_lower_bound(const OSDMap& latest) const;
+  epoch_t get_lower_bound_by_pool(const OSDMap& latest) const;
 
   void dump(Formatter *f) const;
 };