Skip to content

Commit

Permalink
fix: correct file name when loading index (milvus-io#29985)
Browse files Browse the repository at this point in the history
issue: milvus-io#29973

Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby authored Jan 16, 2024
1 parent c31e684 commit 8030b90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/core/src/index/VectorMemIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ VectorMemIndex<T>::Load(milvus::tracer::TraceContext ctx,
}

auto batch_data = file_manager_->LoadIndexToMemory(batch);
for (const auto& file_name : batch) {
for (const auto& file_path : batch) {
const std::string file_name =
file_path.substr(file_path.find_last_of('/') + 1);
AssertInfo(batch_data.find(file_name) != batch_data.end(),
"lost index slice data: {}",
file_name);
Expand Down

0 comments on commit 8030b90

Please sign in to comment.