diff options
| author | chrislu <chris.lu@gmail.com> | 2024-01-03 13:30:30 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-01-03 13:30:30 -0800 |
| commit | 35869b5c8090af92475fadf4766892f4db5adf7b (patch) | |
| tree | ef356c3de16c3a398bc0d402bf2db3afc971b9a9 /weed/cluster/lock_client.go | |
| parent | efb695fd931619831c57a34f61ee3bdf9e5d2339 (diff) | |
| download | seaweedfs-35869b5c8090af92475fadf4766892f4db5adf7b.tar.xz seaweedfs-35869b5c8090af92475fadf4766892f4db5adf7b.zip | |
subscriber can be notified of the assignment change when topic is just configured
Next: Subscriber needs to read by the timestamp offset.
Diffstat (limited to 'weed/cluster/lock_client.go')
| -rw-r--r-- | weed/cluster/lock_client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/cluster/lock_client.go b/weed/cluster/lock_client.go index c21f20874..16f7abc8c 100644 --- a/weed/cluster/lock_client.go +++ b/weed/cluster/lock_client.go @@ -124,7 +124,7 @@ func (lc *LockClient) doNewLock(key string, lockDuration time.Duration, owner st } func (lock *LiveLock) IsLocked() bool { - return lock.isLocked + return lock!=nil && lock.isLocked } func (lock *LiveLock) StopLock() error { |
