Skip to content

Commit

Permalink
fix: Fix get binary vector from chunk cache
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper committed Dec 1, 2023
1 parent ce8219f commit bcc9a0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/core/src/segcore/SegmentSealedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,7 @@ SegmentSealedImpl::get_vector(FieldId field_id,
}

// assign to data array
auto dim = field_meta.get_dim();
auto row_bytes = field_meta.is_vector() ? dim * 4 : dim / 8;
auto row_bytes = field_meta.get_sizeof();
auto buf = std::vector<char>(count * row_bytes);
for (auto i = 0; i < count; i++) {
AssertInfo(id_to_data_path.count(ids[i]) != 0, "id not found");
Expand Down

0 comments on commit bcc9a0c

Please sign in to comment.