Skip to content

Commit

Permalink
resize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NeelamMahapatro committed Feb 5, 2024
1 parent cce54e5 commit 0e1773c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ Index<T, TagT, LabelT>::Index(const IndexConfig &index_config, std::shared_ptr<A
if (_dynamic_index)
{
this->enable_delete(); // enable delete by default for dynamic index
if (_filtered_index)
{
_location_to_labels.resize(total_internal_points);
}
}

if (index_config.index_write_params != nullptr)
Expand Down

0 comments on commit 0e1773c

Please sign in to comment.