mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-09 15:30:33 +08:00
MS-644 - Search crashed with index-type: flat
Former-commit-id: f9d38e6093357bfbb650487ca868b948f15b5656
This commit is contained in:
parent
48d664ecb3
commit
31de75cd7f
@ -110,6 +110,7 @@ Action::DefaultLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr resource,
|
||||
bool moved = false;
|
||||
|
||||
// to support test task, REFACTOR
|
||||
if (resource->type() == ResourceType::CPU) {
|
||||
if (auto index_engine = search_task->index_engine_) {
|
||||
auto location = index_engine->GetLocation();
|
||||
|
||||
@ -123,6 +124,7 @@ Action::DefaultLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr resource,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (not moved) {
|
||||
PushTaskToNeighbourRandomly(task, resource);
|
||||
|
Loading…
Reference in New Issue
Block a user