Commit a63c8014 authored by 余昆's avatar 余昆
Browse files

MS-644 - Search crashed with index-type: flat


Former-commit-id: 860b63b1ca210559d9667a7dcb483fefd3abd206
parent bcc063cc
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -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);