From d23205b718d0b3dbdde4f26a88a69babf60045ff Mon Sep 17 00:00:00 2001 From: Buqian Zheng Date: Fri, 25 Jul 2025 14:24:54 +0800 Subject: [PATCH] enhance: DataCodec to release ownership of input_data after initialization (#43542) issue: https://github.com/milvus-io/milvus/issues/43088 issue: https://github.com/milvus-io/milvus/issues/43038 see also https://github.com/milvus-io/milvus/pull/43533. Signed-off-by: Buqian Zheng --- internal/core/src/storage/DataCodec.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/core/src/storage/DataCodec.cpp b/internal/core/src/storage/DataCodec.cpp index c5bc3f0a2f..7b3257a936 100644 --- a/internal/core/src/storage/DataCodec.cpp +++ b/internal/core/src/storage/DataCodec.cpp @@ -103,9 +103,6 @@ DeserializeFileData(const std::shared_ptr input_data, index_data->set_index_meta(index_meta); index_data->SetTimestamps(index_event_data.start_timestamp, index_event_data.end_timestamp); - // DataCodec must keep the input_data alive for zero-copy usage, - // otherwise segmentation violation will occur - index_data->SetData(input_data); return index_data; } default: