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

pass list of indexes when pruning a subgraph #5791

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

shiyasmohd
Copy link
Contributor

Fixes #5787

@shiyasmohd shiyasmohd self-assigned this Feb 3, 2025
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! That fix was quick!

@lutter lutter merged commit cd6d04c into master Feb 11, 2025
6 checks passed
@lutter
Copy link
Collaborator

lutter commented Feb 11, 2025

I just reverted this, because I realized there is a serious issue with this.

let mut list = IndexList {
indexes: HashMap::new(),
};
let indexes = load_indexes_from_table(conn, &src, dst_nsp.as_str())?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use src_nsp because we want to read the indexes from the source, i.e. the original of the prune.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Pruning recreates all indexes
2 participants