Conversation
| // Also reset inverse mapping | ||
| if let Some(internal_id) = internal_id { | ||
| self.internal_to_external[internal_id as usize] = PointIdType::NumId(u64::MAX); | ||
| } |
There was a problem hiding this comment.
Also resetting the inverse mapping is not strictly necessary. However, I think it's nice to do because that'll put the mapping in exactly the same state as before inserting the point.
Adding this here makes the new test test_point_deletion_persists_reload() happy. The alternative would be to not reset the inverse mapping and relax the test a bit to not assert raw values.
3d914bb to
115ae6a
Compare
115ae6a to
3cdb92b
Compare
3cdb92b to
e44f65f
Compare
📝 WalkthroughWalkthroughThe pull request introduces several changes across multiple files. In the Suggested reviewers
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (13)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
* Add mutable ID tracker tests, ported from immutable ID tracker * Also test raw mappings, reset inverse mapping when dropping point * Always flush mappings before version, also in test
Tracked in: #6157
Depends on: #6150
Add mutable ID tracker tests, ported from immutable ID tracker.
Tasks
devAll Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --all --all-featurescommand?