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

feat: add some list raft commands #309

Merged

Conversation

zztaki
Copy link
Contributor

@zztaki zztaki commented May 12, 2024

#280
use customized batch interface to replace rocksdb::Batch in some list commands, such as LInsert, LPushx, LRem, LSet, LTrim.

@github-actions github-actions bot added the ✏️ Feature New feature or request label May 12, 2024
@@ -161,7 +161,7 @@ Status Redis::LInsert(const Slice& key, const BeforeOrAfter& before_or_after, co
for (iter->Seek(start_data_key.Encode()); iter->Valid() && current_index < parsed_lists_meta_value.RightIndex();
iter->Next(), current_index++) {
ParsedBaseDataValue parsed_value(iter->value());
if (pivot.compare(parsed_value.UserValue().ToString()) == 0) {
if (pivot == parsed_value.UserValue().ToString()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

clang suggestion.

@AlexStocks AlexStocks merged commit 9bcbf5c into OpenAtomFoundation:unstable May 13, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants