diff --git a/src/common/filter/FunctionManager.cpp b/src/common/filter/FunctionManager.cpp index ee584481634..2db88215c98 100644 --- a/src/common/filter/FunctionManager.cpp +++ b/src/common/filter/FunctionManager.cpp @@ -688,7 +688,6 @@ FunctionManager::get(const std::string &func, size_t arity) { StatusOr FunctionManager::getInternal(const std::string &func, size_t arity) const { auto status = Status::OK(); - folly::RWSpinLock::ReadHolder holder(lock_); // check existence auto iter = functions_.find(func); if (iter == functions_.end()) { diff --git a/src/common/filter/FunctionManager.h b/src/common/filter/FunctionManager.h index 2be38b0733f..3d0b8a31ab7 100644 --- a/src/common/filter/FunctionManager.h +++ b/src/common/filter/FunctionManager.h @@ -60,7 +60,6 @@ class FunctionManager final { Function body_; }; - mutable folly::RWSpinLock lock_; std::unordered_map functions_; };