Files
seaweedfs/weed/worker
Chris Lu 34054ed910 Fix deadlock in worker client Connect() method (#7350)
The Connect() method was holding a write lock via defer for its entire
duration, including when calling attemptConnection(). This caused a
deadlock because attemptConnection() tries to acquire a read lock at
line 119 to access c.lastWorkerInfo.

The fix removes the defer unlock pattern and manually releases the lock
after checking the connected state but before calling attemptConnection().
This allows attemptConnection() to acquire its own locks without deadlock.

Fixes #7192
2025-10-20 22:15:52 -07:00
..
2025-08-30 11:15:48 -07:00
2025-08-09 21:47:29 -07:00
2025-10-13 18:05:17 -07:00