Skip to content

Commit 38a6d54

Browse files
authored
fix(enterprise/replicasync): Avoid deadlock during Close^2 (#7230)
1 parent 34c6ad6 commit 38a6d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/replicasync/replicasync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ func (m *Manager) Close() error {
371371
}
372372
close(m.closed)
373373
m.closeCancel()
374-
m.closeWait.Wait()
375374
m.closeMutex.Unlock()
375+
m.closeWait.Wait()
376376
m.mutex.Lock()
377377
defer m.mutex.Unlock()
378378
ctx, cancelFunc := context.WithTimeout(context.Background(), 5*time.Second)

0 commit comments

Comments
 (0)