-
Notifications
You must be signed in to change notification settings - Fork 17
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: adjust rollback_start_live
update
#811
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -237,8 +237,9 @@ impl Rollback { | |||
|
|||
// NOTE: for now, if there is a pending truncate, we ignore everything else. | |||
if let Some(pending_truncate) = pending_truncate { | |||
let rollback_start_live = std::cmp::min(seglog.live_range().0 .0, pending_truncate); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the formatting here is a bit odd (same as before), but should be
seglog.live_range().0.0
without the extra space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I agree that formatting is weird, but it seems it is what the latest version of rustfmt
wants. I disabled it and pushed without the extra space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently this is not considered acceptable by rustfmt
at all, as you can see in this action failure.
I will keep the weird extra space, otherwise we should use something like #[rustfmt::skip]
but I don't think it is worth it!
af7063e
to
a155287
Compare
3ab3af6
to
3f27ed4
Compare
When a rollback is going to erase all the commits, `rollback_start_live` will need to be equal to `pending_truncate`.
3f27ed4
to
d533eef
Compare
When a rollback is going to erase all the commits,
rollback_start_live
will need to be equal topending_truncate
.