fix the bug of DeleteTask state not change (#3935)

* fix the bug of DeleteTask state not change

Signed-off-by: godchen0212 <qingxiang.chen@zilliz.com>
pull/3941/head
chen qingxiang 2020-10-10 14:16:31 +08:00 committed by GitHub
parent e397dd20b9
commit f46e2a621d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Please mark all change in change log and use the issue from GitHub
# Milvus 0.10.4 (TBD)
## Bug
- \#3906 Change DeleteTask state when it is loaded to avoid server crash.
## Feature

View File

@ -174,7 +174,8 @@ Resource::loader_function() {
task_item->Loaded();
auto& label = task_item->task->label();
if (label != nullptr && label->Type() != TaskLabelType::BROADCAST) {
if (label != nullptr &&
(label->Type() != TaskLabelType::BROADCAST || task_item->task->Type() == TaskType::DeleteTask)) {
if (task_item->from) {
task_item->from->Moved();
task_item->from->task = FinishedTask::Create(task_item->from->task);