mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
fix: Deadlock in compaction handler (#37868)
issue: #37803 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
70e6a00ba1
commit
2159526e80
@ -303,6 +303,7 @@ func (c *compactionPlanHandler) schedule() []CompactionTask {
|
||||
c.executingGuard.Lock()
|
||||
c.executingTasks[t.GetTaskProto().GetPlanID()] = t
|
||||
if len(c.executingTasks) >= parallelism {
|
||||
c.executingGuard.Unlock()
|
||||
break // 2. the parallelism of running tasks is reached
|
||||
}
|
||||
c.executingGuard.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user