fix: wrong num_entities used when mmap variable length data (#30848)

https://github.com/milvus-io/milvus/issues/30728

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
pull/30720/head
Jiquan Long 2024-02-28 16:38:56 +08:00 committed by GitHub
parent d15db7596d
commit 4459078e0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -319,10 +319,10 @@ class VariableColumn : public ColumnBase {
indices_ = std::move(indices);
}
num_rows_ = indices_.size();
// for variable length column in memory mode only
if (data_ == nullptr) {
num_rows_ = indices_.size();
size_t total_size = size_;
size_ = 0;
Expand(total_size);