yannh/redis-dump-go

Cannot dump data with null values to other redis nodes

moluzhui opened this issue · 1 comments

When I dumped the data from one node and dumped it to other nodes, I found that the dumping of data with null value failed with the following error

using -output commands

ERR wrong number of arguments for 'set' command

The format of this type of data in the dump file is similar to the following

SET keyofnovalue 

It seems to work if I put it in double quote

SET keyofnovalue ""

But I'm not sure if it can be solved by double quotes for other types of data as well.

Is it possible to put double quotes for all types of data value if applicable

yannh commented

Interesting thanks for the report! 🙇‍♂️