diff options
author | Lu JJ <41555481+ncghost1@users.noreply.github.com> | 2022-04-24 15:21:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 10:21:04 +0300 |
commit | 698e7cbba68aaef86da731ca350279403acdd568 (patch) | |
tree | 675a1bae657d09ebef0987cf231957a7b861a1eb /src/t_hash.c | |
parent | 719b7665860674b9dcf69c4141fb19727b03a250 (diff) | |
download | redis-698e7cbba68aaef86da731ca350279403acdd568.tar.gz |
Fix typo in function name "harndfieldReplyWithListpack" to "hrandfieldReplyWithListpack" (#10623)
Diffstat (limited to 'src/t_hash.c')
-rw-r--r-- | src/t_hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/t_hash.c b/src/t_hash.c index 161153de7..7aec270aa 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -886,7 +886,7 @@ void hscanCommand(client *c) { scanGenericCommand(c,o,cursor); } -static void harndfieldReplyWithListpack(client *c, unsigned int count, listpackEntry *keys, listpackEntry *vals) { +static void hrandfieldReplyWithListpack(client *c, unsigned int count, listpackEntry *keys, listpackEntry *vals) { for (unsigned long i = 0; i < count; i++) { if (vals && c->resp > 2) addReplyArrayLen(c,2); @@ -969,7 +969,7 @@ void hrandfieldWithCountCommand(client *c, long l, int withvalues) { sample_count = count > limit ? limit : count; count -= sample_count; lpRandomPairs(hash->ptr, sample_count, keys, vals); - harndfieldReplyWithListpack(c, sample_count, keys, vals); + hrandfieldReplyWithListpack(c, sample_count, keys, vals); } zfree(keys); zfree(vals); @@ -1071,7 +1071,7 @@ void hrandfieldWithCountCommand(client *c, long l, int withvalues) { if (withvalues) vals = zmalloc(sizeof(listpackEntry)*count); serverAssert(lpRandomPairsUnique(hash->ptr, count, keys, vals) == count); - harndfieldReplyWithListpack(c, count, keys, vals); + hrandfieldReplyWithListpack(c, count, keys, vals); zfree(keys); zfree(vals); return; |