mirror of https://github.com/milvus-io/milvus.git
Fix waitNewTSafe not waiting (#10724)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/10746/head
parent
c51155a542
commit
5317c8abab
|
@ -221,6 +221,8 @@ func (q *queryCollection) waitNewTSafe() (Timestamp, error) {
|
|||
for !q.tSafeUpdate {
|
||||
q.watcherCond.Wait()
|
||||
}
|
||||
q.tSafeUpdate = false
|
||||
q.watcherCond.Broadcast()
|
||||
q.watcherCond.L.Unlock()
|
||||
q.tSafeWatchersMu.RLock()
|
||||
defer q.tSafeWatchersMu.RUnlock()
|
||||
|
|
Loading…
Reference in New Issue