fix:rename mmap file path to avoid directory conflict (#35810)

#35784

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
pull/35935/head
zhagnlu 2024-09-03 16:05:03 +08:00 committed by GitHub
parent c84ea5465c
commit 74048ce34f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -483,7 +483,7 @@ SegmentSealedImpl::LoadFieldData(FieldId field_id, FieldDataInfo& data) {
void
SegmentSealedImpl::MapFieldData(const FieldId field_id, FieldDataInfo& data) {
auto filepath = std::filesystem::path(data.mmap_dir_path) /
auto filepath = std::filesystem::path(data.mmap_dir_path) / "raw_data" /
std::to_string(get_segment_id()) /
std::to_string(field_id.get());
auto dir = filepath.parent_path();

View File

@ -284,9 +284,9 @@ AppendIndexV2(CTraceContext c_trace, CLoadIndexInfo c_load_index_info) {
"mmap directory path is empty");
auto filepath =
std::filesystem::path(load_index_info->mmap_dir_path) /
"index_files" / std::to_string(load_index_info->index_id) /
std::to_string(load_index_info->segment_id) /
std::to_string(load_index_info->field_id) /
std::to_string(load_index_info->index_id);
std::to_string(load_index_info->field_id);
config[milvus::index::MMAP_FILE_PATH] = filepath.string();
}