Describe the bug

The integer reply for HSET is not correct.

For example:

HSET hash field1 value1 field2 value2 (integer) 3

The returned integer should be 2, since 2 fields were added. Instead of counting the number of fields, it prints 2n-1 for n fields.

To reproduce

HSET with more than one field/value pair.

Expected behavior

HSET should print (integer) n for n fields added.

Comment From: enjoy-binbin

what version are you using? my return result is 2 (unstable branch)

Comment From: turnerburchard

what version are you using? my return result is 2 (unstable branch)

looks like this was fixed somewhere since the last release

Comment From: oranagra

@turnerburchard i'm not aware of any such fix or bug in a recent release or after it. please double check your facts and if you find a problem please report with more details.