-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
kvserver: unify two request flags #60548
kvserver: unify two request flags #60548
Conversation
pkg/roachpb/batch.go
Outdated
func (ba *BatchRequest) IsUnsplittable() bool { | ||
return ba.hasFlag(isUnsplittable) | ||
} | ||
|
||
// ConsultsTimestampCache returns whether the request must consult |
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.
Why keep BatchRequest.ConsultsTimestampCache()
but not ConsultsTimestampCache(Request)
? I'd either keep both or remove both.
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.
done
8fbc4f6
to
456c53f
Compare
@@ -207,7 +207,7 @@ func (r *Replica) tryReproposeWithNewLeaseIndex( | |||
defer untrack(ctx, 0, 0, 0) // covers all error paths below | |||
// The ConsultsTimestampCache condition matches the similar logic for caring |
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.
This comment now needs an update.
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.
LGTM
isIntentWrite and consultsTSCache are always used in conjunction. It seems that they must always be used in conjunction. Remove consultsTSCache. Release note: None
456c53f
to
b956057
Compare
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @nvanbenschoten)
pkg/kv/kvserver/replica_application_result.go, line 208 at r2 (raw file):
Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
This comment now needs an update.
done
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.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)
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.
bors r+
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)
Build succeeded: |
isIntentWrite and consultsTSCache are always used in conjunction. It
seems that they must always be used in conjunction. Remove
consultsTSCache.
Release note: None