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

fix:fix Zpopmaxbugs return value not same as redis #2188

Merged
merged 21 commits into from
Dec 21, 2023

Conversation

hero-heng
Copy link
Contributor

@hero-heng hero-heng commented Dec 7, 2023

issue bug: the return value of Pika ZPOPMAX is not the same as Redis

修复参数个数超过了,缺少了一些判断逻辑导致和Redis那边的返回值不一致问题:
排查问题命令有:

  • zpopmax
  • zpopmin
  • spop
  • lpop
  • rpop

@github-actions github-actions bot added ☢️ Bug Something isn't working ✏️ Feature New feature or request labels Dec 7, 2023
@AlexStocks
Copy link
Collaborator

great work. please add ut in Go too. thx.

@AlexStocks
Copy link
Collaborator

需要补充 go 语言单测

src/pika_command.cc Outdated Show resolved Hide resolved
src/pika_command.cc Show resolved Hide resolved
src/pika_slot.cc Outdated Show resolved Hide resolved
src/pika_set.cc Outdated Show resolved Hide resolved
src/pika_zset.cc Outdated Show resolved Hide resolved
src/pika_zset.cc Outdated Show resolved Hide resolved
tests/integration/list_test.go Show resolved Hide resolved
tests/integration/list_test.go Show resolved Hide resolved
tests/integration/set_test.go Show resolved Hide resolved
tests/integration/zset_test.go Show resolved Hide resolved
@Mixficsol Mixficsol merged commit 9e26988 into OpenAtomFoundation:unstable Dec 21, 2023
12 of 13 checks passed
@chejinge chejinge changed the title feat:fixed Zpopmaxbugs etc. bugs fix:fix Zpopmaxbugs return value not same as redis Feb 7, 2024
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* feat:unstable branch

* feat:handle merge

* feat:add lastsave cmd

* feat:update lastsave cmd

* feat:update lastsave cmd

* feat:fixed lastsave cmd

* feat:fixed server_test.go

* feat:fixed server_test.go

* feat:fixed server_test.go

* feat:fixed server_test.go

* feat:update modifies

* feat:fixed zpopmax etc. bug

* feat:add zpopmax ut

* feat:fixed ut bugs

* feat:fixed ut

* feat:update code

* feat:update ut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.3 ☢️ Bug Something isn't working ✏️ Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants