Skip to content

[BUG] RESP3 map reply in scripts have key and value inverted #8253

@XeCycle

Description

@XeCycle

Describe the bug

...

To reproduce

$ redis-cli -3 -h host
host:6379> eval 'redis.setresp(3); return { map={hello="world"} }' 0
1# "world" => "hello"

Expected behavior

I think we should return "hello" => "world".

Additional information

Relevant code starts here, returning value first seems an unusual choice. It may break uniqueness assumptions on keys anyway.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions