]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: inline pool full check 33020/head
authorSage Weil <sage@redhat.com>
Fri, 31 Jan 2020 18:01:19 +0000 (12:01 -0600)
committerSage Weil <sage@redhat.com>
Fri, 31 Jan 2020 18:01:19 +0000 (12:01 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h

index 7c791eaf6558efbded299861c58de3cefbd5f045..f5d59b2d6b74b46327d58be7f4a4072a05628019 100644 (file)
@@ -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.
  */
index 9bc1cee92784419bc0c3aa71c92408d18f339dea..e153ce5f17f65ea97f8e4106b5cbd0f343da4496 100644 (file)
@@ -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<int64_t, bool>& pool_full_map);
 
   std::map<uint64_t, LingerOp*> linger_ops;