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);
|
||||
}
|
||||
|
||||
// for variable length column in memory mode only
|
||||
if (data_ == nullptr) {
|
||||
num_rows_ = indices_.size();
|
||||
|
||||
// for variable length column in memory mode only
|
||||
if (data_ == nullptr) {
|
||||
size_t total_size = size_;
|
||||
size_ = 0;
|
||||
Expand(total_size);
|
||||
|
|
Loading…
Reference in New Issue