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
txn: skip constraint check for prewrite when loading data #1411
Conversation
@@ -408,12 +409,14 @@ impl Storage { | |||
Ok(()) | |||
} | |||
|
|||
#[allow(too_many_arguments)] |
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.
need refactor, not allow too_many_arguments
directly.
LGTM |
LGTM |
@BusyJay PTAL |
pub fn prewrite(&mut self, | ||
mutation: Mutation, | ||
primary: &[u8], | ||
lock_ttl: u64, |
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 not use OptionsArg
directly?
@@ -262,6 +263,23 @@ impl Command { | |||
|
|||
use util::transport::SendCh; | |||
|
|||
#[derive(Default)] | |||
pub struct OptionalArgs { |
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.
OptionalArgs
doesn't seem to be a good name, maybe call it Options
or RwOption
?
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
Skip constraint check for prewrite when loading data.
@siddontang @BusyJay @disksing PTAL