From bf9ae74384c0dc351849a63c31b779f8481dadc7 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 1 Jan 2024 19:09:05 -0800 Subject: [PATCH] add logs --- weed/cluster/lock_manager/distributed_lock_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/cluster/lock_manager/distributed_lock_manager.go b/weed/cluster/lock_manager/distributed_lock_manager.go index 9479b38b0..43e836461 100644 --- a/weed/cluster/lock_manager/distributed_lock_manager.go +++ b/weed/cluster/lock_manager/distributed_lock_manager.go @@ -2,6 +2,7 @@ package lock_manager import ( "fmt" + "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb" "time" ) @@ -53,6 +54,7 @@ func (dlm *DistributedLockManager) FindLockOwner(key string) (owner string, move return } if movedTo != dlm.Host { + glog.V(0).Infof("lock %s not on %s: to %s", key, dlm.Host, movedTo) return } owner, err = dlm.lockManager.GetLockOwner(key)