From e1139167aed93d8f0c4adc8cc7b85a26e28dc8c3 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Mon, 11 Oct 2021 18:12:48 -0700 Subject: [PATCH] Inline an empty destructor (#9004) Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/9004 Inline an empty destructor Reviewed By: ltamasi Differential Revision: D31525561 fbshipit-source-id: 3b9e37f06b0c70529a5d2d660de21ea335c73611 --- utilities/transactions/lock/point/point_lock_manager.cc | 2 -- utilities/transactions/lock/point/point_lock_manager.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/utilities/transactions/lock/point/point_lock_manager.cc b/utilities/transactions/lock/point/point_lock_manager.cc index 79954d8f05..70ef289da8 100644 --- a/utilities/transactions/lock/point/point_lock_manager.cc +++ b/utilities/transactions/lock/point/point_lock_manager.cc @@ -114,8 +114,6 @@ PointLockManager::PointLockManager(PessimisticTransactionDB* txn_db, ? opt.custom_mutex_factory : std::make_shared()) {} -PointLockManager::~PointLockManager() {} - size_t LockMap::GetStripe(const std::string& key) const { assert(num_stripes_ > 0); return FastRange64(GetSliceNPHash64(key), num_stripes_); diff --git a/utilities/transactions/lock/point/point_lock_manager.h b/utilities/transactions/lock/point/point_lock_manager.h index c861061fcd..191375246d 100644 --- a/utilities/transactions/lock/point/point_lock_manager.h +++ b/utilities/transactions/lock/point/point_lock_manager.h @@ -115,7 +115,7 @@ class PointLockManager : public LockManager { PointLockManager(const PointLockManager&) = delete; PointLockManager& operator=(const PointLockManager&) = delete; - ~PointLockManager() override; + ~PointLockManager() override {} bool IsPointLockSupported() const override { return true; }