mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add logs
This commit is contained in:
parent
32bc8d6a38
commit
bf9ae74384
|
@ -2,6 +2,7 @@ package lock_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
"github.com/seaweedfs/seaweedfs/weed/pb"
|
"github.com/seaweedfs/seaweedfs/weed/pb"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -53,6 +54,7 @@ func (dlm *DistributedLockManager) FindLockOwner(key string) (owner string, move
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if movedTo != dlm.Host {
|
if movedTo != dlm.Host {
|
||||||
|
glog.V(0).Infof("lock %s not on %s: to %s", key, dlm.Host, movedTo)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
owner, err = dlm.lockManager.GetLockOwner(key)
|
owner, err = dlm.lockManager.GetLockOwner(key)
|
||||||
|
|
Loading…
Reference in a new issue