mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
Fix bug:wait for search finish when stop querynode (#14228)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
f67f29a613
commit
684a63b698
@ -665,8 +665,10 @@ func (colReplica *collectionReplica) getExcludedSegments(collectionID UniqueID)
|
||||
|
||||
// freeAll will free all meta info from collectionReplica
|
||||
func (colReplica *collectionReplica) freeAll() {
|
||||
colReplica.queryMu.Lock() // wait for current search/query finish
|
||||
colReplica.mu.Lock()
|
||||
defer colReplica.mu.Unlock()
|
||||
defer colReplica.queryMu.Unlock()
|
||||
|
||||
for id := range colReplica.collections {
|
||||
_ = colReplica.removeCollectionPrivate(id)
|
||||
|
Loading…
Reference in New Issue
Block a user