]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction_manager: add the missing UNIT_TESTS_BUILT guard 54325/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 3 Nov 2023 09:24:54 +0000 (17:24 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 3 Nov 2023 09:30:45 +0000 (17:30 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/transaction_manager.cc

index 7fbe119fcdd762a8a263527460e9827e87f90784..7261c84d2df735e976f28d000fc49b96af2cb669 100644 (file)
@@ -178,6 +178,7 @@ TransactionManager::close_ertr::future<> TransactionManager::close() {
   });
 }
 
+#ifdef UNIT_TESTS_BUILT
 TransactionManager::ref_ret TransactionManager::inc_ref(
   Transaction &t,
   LogicalCachedExtentRef &ref)
@@ -209,6 +210,7 @@ TransactionManager::ref_ret TransactionManager::inc_ref(
     return result.refcount;
   });
 }
+#endif
 
 TransactionManager::ref_ret TransactionManager::remove(
   Transaction &t,