mirror of https://github.com/milvus-io/milvus.git
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
parent
d15db7596d
commit
4459078e0b
|
@ -319,10 +319,10 @@ class VariableColumn : public ColumnBase {
|
||||||
indices_ = std::move(indices);
|
indices_ = std::move(indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
num_rows_ = indices_.size();
|
||||||
|
|
||||||
// for variable length column in memory mode only
|
// for variable length column in memory mode only
|
||||||
if (data_ == nullptr) {
|
if (data_ == nullptr) {
|
||||||
num_rows_ = indices_.size();
|
|
||||||
|
|
||||||
size_t total_size = size_;
|
size_t total_size = size_;
|
||||||
size_ = 0;
|
size_ = 0;
|
||||||
Expand(total_size);
|
Expand(total_size);
|
||||||
|
|
Loading…
Reference in New Issue