Skip to content
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

Merged
merged 2 commits into from
Jun 24, 2022
Merged

Return sequence number of writes #292

merged 2 commits into from
Jun 24, 2022

Conversation

5kbpers
Copy link
Member

@5kbpers 5kbpers commented Jun 24, 2022

Signed-off-by: 5kbpers hustmh@gmail.com

Signed-off-by: 5kbpers <hustmh@gmail.com>
@tabokie tabokie self-requested a review June 24, 2022 02:21
Copy link
Member

@tabokie tabokie left a 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.

@tabokie tabokie requested a review from Connor1996 June 24, 2022 02:25
@@ -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) {
Copy link
Member Author

@5kbpers 5kbpers Jun 24, 2022

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right.

Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@tabokie tabokie left a 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>
@tabokie
Copy link
Member

tabokie commented Jun 24, 2022

/run-test

@5kbpers 5kbpers merged commit 0b6d58b into tikv:6.4.tikv Jun 24, 2022
tabokie pushed a commit to tabokie/rocksdb that referenced this pull request Jun 27, 2022
* 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>
tabokie pushed a commit that referenced this pull request Jun 28, 2022
* 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>
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request May 29, 2024
* 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>
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request Oct 2, 2024
* 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>
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request Oct 2, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants