Skip to content

Commit

Permalink
Remove lock in FunctionManager (#2273)
Browse files Browse the repository at this point in the history
Co-authored-by: trippli <[email protected]>
Co-authored-by: dutor <[email protected]>
  • Loading branch information
3 people authored Aug 6, 2020
1 parent 28ddf2f commit 2249c03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/common/filter/FunctionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,6 @@ FunctionManager::get(const std::string &func, size_t arity) {
StatusOr<FunctionManager::Function>
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()) {
Expand Down
1 change: 0 additions & 1 deletion src/common/filter/FunctionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class FunctionManager final {
Function body_;
};

mutable folly::RWSpinLock lock_;
std::unordered_map<std::string, FunctionAttributes> functions_;
};

Expand Down

0 comments on commit 2249c03

Please sign in to comment.