]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: ignore maybe unused variables 46351/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 19 May 2022 07:44:16 +0000 (15:44 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 20 May 2022 03:27:02 +0000 (11:27 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/cache.h

index 92cd6c59226cb0219003789b1b0a988554515ba6..6734b30389a7967eb6275c967f4c92e85391ad05 100644 (file)
@@ -1302,6 +1302,7 @@ void Cache::backref_batch_update(
   for (auto &ent : list) {
     if (ent->laddr == L_ADDR_NULL) {
       auto [it, insert] = backref_remove_set.insert(*ent);
+      boost::ignore_unused(insert);
 #ifndef NDEBUG
       if (!insert) {
        ERROR("backref_remove_set already contains {}", ent->paddr);
@@ -1317,6 +1318,7 @@ void Cache::backref_batch_update(
       assert(!r);
 #endif
       auto [it, insert] = backref_inserted_set.insert(*ent);
+      boost::ignore_unused(insert);
       assert(insert);
     }
   }
index e2a174e012030b19038b827adf162e31b4723fc1..6c20ceb4fe0d9c0f6348fe9cfc58d8380aaa491d 100644 (file)
@@ -949,6 +949,7 @@ public:
   void add_backref_extent(paddr_t paddr, extent_types_t type) {
     assert(!paddr.is_relative());
     auto [iter, inserted] = backref_extents.emplace(paddr, type);
+    boost::ignore_unused(inserted);
     assert(inserted);
   }