Skip to content

Bug fix : Fix error return when SET NX/XX command fails - #1343

Merged
wanghenshui merged 1 commit into
OpenAtomFoundation:unstablefrom
gtygo:fix_setnxxx
Mar 22, 2023
Merged

Bug fix : Fix error return when SET NX/XX command fails#1343
wanghenshui merged 1 commit into
OpenAtomFoundation:unstablefrom
gtygo:fix_setnxxx

Conversation

@gtygo

@gtygo gtygo commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

Fix a bug in the process of executing the SET command.
When the SET command contains parameters: NX or XX and the execution fails, the wrong RESP information will be written to the i/o buffer: *-1\r\n (Null Array), in fact, the correct return format should be: $-1\r\n (Null Bulk String), this wrong return will cause some Redis clients to generate some exceptions.

@wanghenshui
wanghenshui merged commit dd7a4c6 into OpenAtomFoundation:unstable Mar 22, 2023
@wanghenshui

Copy link
Copy Markdown
Collaborator

thanks!

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.

2 participants