mirror of https://github.com/tidwall/tile38.git
Avoid extra broadcasts
This commit is contained in:
parent
8906d8e65a
commit
1197cca40c
|
@ -172,6 +172,7 @@ func (server *Server) writeAOF(args []string, d *commandDetailsT) error {
|
|||
|
||||
// live geofences
|
||||
server.lcond.L.Lock()
|
||||
if len(server.lives) > 0 {
|
||||
if d.parent {
|
||||
// queue children
|
||||
for _, d := range d.children {
|
||||
|
@ -182,6 +183,7 @@ func (server *Server) writeAOF(args []string, d *commandDetailsT) error {
|
|||
server.lstack = append(server.lstack, d)
|
||||
}
|
||||
server.lcond.Broadcast()
|
||||
}
|
||||
server.lcond.L.Unlock()
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue