-
Notifications
You must be signed in to change notification settings - Fork 93
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
Return sequence number of writes #292
Conversation
Signed-off-by: 5kbpers <hustmh@gmail.com>
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.
Add a new method instead of changing the old one.
@@ -379,7 +380,10 @@ class DB { | |||
// options.sync=true. | |||
// Returns OK on success, non-OK on failure. | |||
// Note: consider setting options.sync = true. | |||
virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; | |||
virtual Status Write(const WriteOptions& options, WriteBatch* updates, uint64_t* seq) = 0; | |||
virtual Status Write(const WriteOptions& options, WriteBatch* updates) { |
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.
@tabokie It is a polymorphism of the old interface
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.
Oh, right.
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
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.
CI is failing.
Signed-off-by: 5kbpers <hustmh@gmail.com>
/run-test |
* return sequence number of writes Signed-off-by: 5kbpers <hustmh@gmail.com> * fix compile error Signed-off-by: 5kbpers <hustmh@gmail.com> Signed-off-by: tabokie <xy.tao@outlook.com>
* return sequence number of writes Signed-off-by: 5kbpers <hustmh@gmail.com> * fix compile error Signed-off-by: 5kbpers <hustmh@gmail.com> Signed-off-by: tabokie <xy.tao@outlook.com>
* return sequence number of writes Signed-off-by: 5kbpers <hustmh@gmail.com> * fix compile error Signed-off-by: 5kbpers <hustmh@gmail.com> Signed-off-by: tabokie <xy.tao@outlook.com>
* return sequence number of writes Signed-off-by: 5kbpers <hustmh@gmail.com> * fix compile error Signed-off-by: 5kbpers <hustmh@gmail.com> Signed-off-by: tabokie <xy.tao@outlook.com> Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
* return sequence number of writes Signed-off-by: 5kbpers <hustmh@gmail.com> * fix compile error Signed-off-by: 5kbpers <hustmh@gmail.com> Signed-off-by: tabokie <xy.tao@outlook.com> Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: 5kbpers hustmh@gmail.com