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

support post write callback #326

Merged
merged 9 commits into from
Dec 23, 2022
Merged

Conversation

tabokie
Copy link
Member

@tabokie tabokie commented Dec 16, 2022

A callback that is called after write succeeds and changes have been applied to memtable.

Titan change: tikv/titan#270

Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@@ -55,7 +55,8 @@ class CompactedDBImpl : public DBImpl {
}
using DBImpl::Write;
virtual Status Write(const WriteOptions& /*options*/, WriteBatch* /*updates*/,
uint64_t* /*seq*/) override {
uint64_t* /*seq*/,
Copy link
Member

Choose a reason for hiding this comment

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

Seems the sequence number can be retrived in PostWriteCallback.

Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
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

@tabokie tabokie merged commit 08aa503 into tikv:6.29.tikv Dec 23, 2022
@tabokie tabokie deleted the 221215-post-write branch December 23, 2022 01:20
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request May 29, 2024
A callback that is called after write succeeds and changes have been applied to memtable.

Titan change: tikv/titan#270

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
A callback that is called after write succeeds and changes have been applied to memtable.

Titan change: tikv/titan#270

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
A callback that is called after write succeeds and changes have been applied to memtable.

Titan change: tikv/titan#270

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