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

refactor: use rocksdb_wrapper::write_batch_put to reimplement incr #667

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

levy5307
Copy link
Contributor

@levy5307 levy5307 commented Dec 31, 2020

What problem does this PR solve?

use rocksdb_wrapper::write_batch_put to reimplement incr

There are a lot of function tests in test_incr.cpp.

  • Manual test (add detailed scripts or steps below)
>>> use temp
OK
>>> incr a b 0
0

app_id          : 2
partition_index : 4
decree          : 5
server          : 10.232.55.210:34802
>>> get a b 
"0"

app_id          : 2
partition_index : 4
server          : 10.232.55.210:34802
>>> incr a b 1
1

app_id          : 2
partition_index : 4
decree          : 6
server          : 10.232.55.210:34802
>>> get a b 
"1"

app_id          : 2
partition_index : 4
server          : 10.232.55.210:34802
>>> incr a b 5
6

app_id          : 2
partition_index : 4
decree          : 7
server          : 10.232.55.210:34802
>>> get a b 
"6"

app_id          : 2
partition_index : 4
server          : 10.232.55.210:34802

@neverchanje neverchanje merged commit f9a7ba6 into apache:master Jan 4, 2021
@neverchanje neverchanje mentioned this pull request Mar 1, 2021
@levy5307 levy5307 deleted the write-incr branch March 18, 2021 03:16
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