Repository navigation
Conversation
generall
commented
Nov 27, 2024
| if local_version > deleted_version { | ||
| // If local version is higher than what we already moved, | ||
| // We might want to overwrite it again | ||
| local_version |
Member
Author
There was a problem hiding this comment.
This is the code-path, which we didn't allow before
timvisee
reviewed
Nov 27, 2024
timvisee
approved these changes
Nov 27, 2024
Member
There was a problem hiding this comment.
I simplified the match tree a bit with two flattened if-statements (6015442). Feel free to drop the commit if you like the previous better - it contains no logic change.
It also looked like two boolean conditions were accidentally reverted, I added a commit to patch this.
Other than that, the implementation looks good. The change makes a lot of sense. Great find!
generall
added a commit
that referenced
this pull request
Nov 27, 2024
* test to demonstrate inconsistency failure during optimization * Fix apply points mixing point versions, only apply operation to latest (#5528) * Patch apply points, only apply point operations to latest point version * Simplify test, we don't need owned strings in JSON macro * Use ahash in apply points because we map to simple numbers * Minor improvements * preserve the update version before doing move_if_exists in proxy (#5531) * preserve the update version before doing move_if_exists in proxy * Simplify move_if_exists with flat if statements and early return * Fix inverted condition, consider deleted if delete is new * Use hash map keys iterator as more idiomatic Rust --------- Co-authored-by: timvisee <[email protected]> Co-authored-by: Tim Visée <[email protected]> --------- Co-authored-by: Tim Visée <[email protected]> Co-authored-by: timvisee <[email protected]>
coszio
pushed a commit
that referenced
this pull request
Dec 2, 2024
* test to demonstrate inconsistency failure during optimization * Fix apply points mixing point versions, only apply operation to latest (#5528) * Patch apply points, only apply point operations to latest point version * Simplify test, we don't need owned strings in JSON macro * Use ahash in apply points because we map to simple numbers * Minor improvements * preserve the update version before doing move_if_exists in proxy (#5531) * preserve the update version before doing move_if_exists in proxy * Simplify move_if_exists with flat if statements and early return * Fix inverted condition, consider deleted if delete is new * Use hash map keys iterator as more idiomatic Rust --------- Co-authored-by: timvisee <[email protected]> Co-authored-by: Tim Visée <[email protected]> --------- Co-authored-by: Tim Visée <[email protected]> Co-authored-by: timvisee <[email protected]>
timvisee
added a commit
that referenced
this pull request
Dec 9, 2024
* test to demonstrate inconsistency failure during optimization * Fix apply points mixing point versions, only apply operation to latest (#5528) * Patch apply points, only apply point operations to latest point version * Simplify test, we don't need owned strings in JSON macro * Use ahash in apply points because we map to simple numbers * Minor improvements * preserve the update version before doing move_if_exists in proxy (#5531) * preserve the update version before doing move_if_exists in proxy * Simplify move_if_exists with flat if statements and early return * Fix inverted condition, consider deleted if delete is new * Use hash map keys iterator as more idiomatic Rust --------- Co-authored-by: timvisee <[email protected]> Co-authored-by: Tim Visée <[email protected]> --------- Co-authored-by: Tim Visée <[email protected]> Co-authored-by: timvisee <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Additional fix for #5527.