From 74b2cd6d9d42d0a98db4a6c310c0963737d8468f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Jan 2020 12:01:19 -0600 Subject: [PATCH] osdc/Objecter: inline pool full check Signed-off-by: Sage Weil --- src/osdc/Objecter.cc | 5 ----- src/osdc/Objecter.h | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 7c791eaf6558e..f5d59b2d6b74b 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -2685,11 +2685,6 @@ bool Objecter::_osdmap_has_pool_full() const return false; } -bool Objecter::_osdmap_pool_full(const pg_pool_t &p) const -{ - return p.has_flag(pg_pool_t::FLAG_FULL) && honor_pool_full; -} - /** * Wrapper around osdmap->test_flag for special handling of the FULL flag. */ diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index 9bc1cee927844..e153ce5f17f65 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -1968,6 +1968,7 @@ public: bool osdmap_full_flag() const; bool osdmap_pool_full(const int64_t pool_id) const; + private: /** @@ -1977,7 +1978,9 @@ public: * the global full flag is set, else false */ bool _osdmap_pool_full(const int64_t pool_id) const; - bool _osdmap_pool_full(const pg_pool_t &p) const; + bool _osdmap_pool_full(const pg_pool_t &p) const { + return p.has_flag(pg_pool_t::FLAG_FULL) && honor_pool_full; + } void update_pool_full_map(std::map& pool_full_map); std::map linger_ops; -- 2.39.5