Skip to content

Commit

Permalink
no need convert to slice
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghenshui authored Nov 13, 2023
1 parent c9b12de commit 219f721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/src/redis_lists.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Status RedisLists::LInsert(const Slice& key, const BeforeOrAfter& before_or_afte
ListsDataKey start_data_key(key, version, current_index);
for (iter->Seek(start_data_key.Encode()); iter->Valid() && current_index < parsed_lists_meta_value.right_index();
iter->Next(), current_index++) {
if (iter->value() == Slice(pivot)) {
if (iter->value() == pivot) {
find_pivot = true;
pivot_index = current_index;
break;
Expand Down

0 comments on commit 219f721

Please sign in to comment.