Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assert crash. index.cpp : 1053 line assert(_graph_store->get_total_points() == _max_points + _num_frozen_pts); #562

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ std::unique_ptr<AbstractIndex> IndexFactory::create_instance()
(size_t)(defaults::GRAPH_SLACK_FACTOR * 1.05 *
(_config->index_write_params == nullptr ? 0 : _config->index_write_params->max_degree));
std::unique_ptr<AbstractGraphStore> graph_store =
construct_graphstore(_config->graph_strategy, num_points + _config->num_frozen_pts, max_reserve_degree);
construct_graphstore(_config->graph_strategy, num_points, max_reserve_degree);

// REFACTOR TODO: Must construct in-memory PQDatastore if strategy == ONDISK and must construct
// in-mem and on-disk PQDataStore if strategy == ONDISK and diskPQ is required.
Expand Down