mirror of https://github.com/milvus-io/milvus.git
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
parent
c84ea5465c
commit
74048ce34f
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue