mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: enable -Werror=thread-safety and add missing annotations (part 2/2) (#3595)
* add missing annotations * small mutex fixes * enable -Werror=thread-safety for clang builds --------- Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
0705bbb536
commit
41f7b611d0
17 changed files with 127 additions and 82 deletions
|
@ -565,8 +565,7 @@ class DbSlice {
|
|||
return version_++;
|
||||
}
|
||||
|
||||
void CallChangeCallbacks(DbIndex id, std::string_view key, const ChangeReq& cr) const
|
||||
ABSL_EXCLUSIVE_LOCKS_REQUIRED(local_mu_);
|
||||
void CallChangeCallbacks(DbIndex id, std::string_view key, const ChangeReq& cr) const;
|
||||
|
||||
// Used to provide exclusive access while Traversing segments
|
||||
mutable ThreadLocalMutex local_mu_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue