diff --git a/weed/cluster/lock_manager/lock_ring.go b/weed/cluster/lock_manager/lock_ring.go index c59aab184..9edee1e96 100644 --- a/weed/cluster/lock_manager/lock_ring.go +++ b/weed/cluster/lock_manager/lock_ring.go @@ -72,7 +72,9 @@ func (r *LockRing) SetSnapshot(servers []pb.ServerAddress) { return servers[i] < servers[j] }) + r.Lock() r.lastUpdateTime = time.Now() + r.Unlock() r.addOneSnapshot(servers)