Skip to content

fix(lists): When using the count optional parameter to execute lpop and rpop, incorrect number of parameters information was returned. - #1639

Merged
AlexStocks merged 5 commits into
OpenAtomFoundation:unstablefrom
iSuperCoder:fix/fix-1520
Jul 9, 2023
Merged

fix(lists): When using the count optional parameter to execute lpop and rpop, incorrect number of parameters information was returned.#1639
AlexStocks merged 5 commits into
OpenAtomFoundation:unstablefrom
iSuperCoder:fix/fix-1520

Conversation

@iSuperCoder

Copy link
Copy Markdown
Contributor
  1. Added the count private attribute to the rpop and lpop commands, with a default value of 1.
  2. If the user passes a count value during the call, the default value is replaced.

close #1520

…nd rpop, incorrect number of parameters information was returned.

1.Added the count private attribute to the rpop and lpop commands, with a default value of 1.
2.If the user passes a count value during the call, the default value is replaced.
Comment thread include/pika_list.h
Comment thread src/pika_command.cc
1. Resolved some build error for using lpop in keys_test.cc.
2. For readability,change the type of count_ variable to std::int64_t from int64_t pika_list.h.
Comment thread include/pika_list.h
Comment thread src/storage/tests/keys_test.cc
Comment thread include/pika_list.h
AlexStocks
AlexStocks previously approved these changes Jul 1, 2023
@AlexStocks
AlexStocks requested a review from cheniujh July 1, 2023 14:47
Comment thread src/pika_list.cc Outdated
Comment thread src/storage/include/storage/storage.h
Comment thread src/pika_list.cc
Comment thread src/storage/include/storage/storage.h
Comment thread src/pika_command.cc
Comment thread src/pika_list.cc
@AlexStocks
AlexStocks merged commit 4a58a70 into OpenAtomFoundation:unstable Jul 9, 2023
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
…nd rpop, incorrect number of parameters information was returned. (OpenAtomFoundation#1639)

* fix(lists): When using the count optional parameter to execute lpop and rpop, incorrect number of parameters information was returned.

1.Added the count private attribute to the rpop and lpop commands, with a default value of 1.
2.If the user passes a count value during the call, the default value is replaced.

* fix(keys_tests.h): fix keys_test.cc and refactor pika_list.h.

1. Resolved some build error for using lpop in keys_test.cc.
2. For readability,change the type of count_ variable to std::int64_t from int64_t pika_list.h.

* refactor: delete unnecessary variable definitions and optimize the semantics of comments
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
…nd rpop, incorrect number of parameters information was returned. (OpenAtomFoundation#1639)

* fix(lists): When using the count optional parameter to execute lpop and rpop, incorrect number of parameters information was returned.

1.Added the count private attribute to the rpop and lpop commands, with a default value of 1.
2.If the user passes a count value during the call, the default value is replaced.

* fix(keys_tests.h): fix keys_test.cc and refactor pika_list.h.

1. Resolved some build error for using lpop in keys_test.cc.
2. For readability,change the type of count_ variable to std::int64_t from int64_t pika_list.h.

* refactor: delete unnecessary variable definitions and optimize the semantics of comments
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.

rpop 提示参数不对

5 participants