mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Check whether compaction plan exist before update (#28826)
Fix: #28825 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
3b1b14dd78
commit
3f9da2b8a0
@ -197,7 +197,11 @@ func (c *compactionPlanHandler) removeTasksByChannel(channel string) {
|
||||
func (c *compactionPlanHandler) updateTask(planID int64, opts ...compactionTaskOpt) {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
c.plans[planID] = c.plans[planID].shadowClone(opts...)
|
||||
plan, ok := c.plans[planID]
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
c.plans[planID] = plan.shadowClone(opts...)
|
||||
}
|
||||
|
||||
func (c *compactionPlanHandler) enqueuePlan(signal *compactionSignal, plan *datapb.CompactionPlan) error {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user