Browse Source

log server list

mq-subscribe
chrislu 9 months ago
parent
commit
7d69552974
  1. 3
      weed/cluster/lock_manager/distributed_lock_manager.go

3
weed/cluster/lock_manager/distributed_lock_manager.go

@ -55,7 +55,8 @@ func (dlm *DistributedLockManager) FindLockOwner(key string) (owner string, move
return
}
if movedTo != dlm.Host {
glog.V(0).Infof("lock %s not on current %s but on %s", key, dlm.Host, movedTo)
servers := dlm.LockRing.GetSnapshot()
glog.V(0).Infof("lock %s not on current %s but on %s from %v", key, dlm.Host, movedTo, servers)
return
}
owner, err = dlm.lockManager.GetLockOwner(key)

Loading…
Cancel
Save