mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix: Lock before accessing slots_ (#1219)
This commit is contained in:
parent
7ab7d8bb80
commit
790e357aaf
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ bool ClusterConfig::IsMySlot(SlotId id) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
shared_lock gu(mu_);
|
||||
return slots_[id].owned_by_me;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue