milvus/pkg/util/lock
congqixia 8cf2cf5c94
enhance: Add go-deadlock as unittest only dependency (#33063)
See also #33062

This PR:

- Add `lock.RWMutex` & `lock.Mutex` alias to switch implementation based
  on build flags
- When build flags has `test` in it, use `go-deadlock` to detect
  possible deadlocks
- Replace all `sync.RWMutex` & `sync.Mutex` in datacoord pkg

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-05-15 16:33:34 +08:00
..
key_lock_test.go Make KeyLock generic (#27854) 2023-10-23 17:40:11 +08:00
key_lock.go Make KeyLock generic (#27854) 2023-10-23 17:40:11 +08:00
metric_mutex.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
metrics_mutex_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
mutex_deadlock.go enhance: Add go-deadlock as unittest only dependency (#33063) 2024-05-15 16:33:34 +08:00
mutex.go enhance: Add go-deadlock as unittest only dependency (#33063) 2024-05-15 16:33:34 +08:00