Merge pull request #6389 from ocadaruma/patch-1
Fix typos in hyperloglog.c
This commit is contained in:
commit
d0050db236
@ -1242,7 +1242,7 @@ void pfcountCommand(client *c) {
|
|||||||
if (o == NULL) continue; /* Assume empty HLL for non existing var.*/
|
if (o == NULL) continue; /* Assume empty HLL for non existing var.*/
|
||||||
if (isHLLObjectOrReply(c,o) != C_OK) return;
|
if (isHLLObjectOrReply(c,o) != C_OK) return;
|
||||||
|
|
||||||
/* Merge with this HLL with our 'max' HHL by setting max[i]
|
/* Merge with this HLL with our 'max' HLL by setting max[i]
|
||||||
* to MAX(max[i],hll[i]). */
|
* to MAX(max[i],hll[i]). */
|
||||||
if (hllMerge(registers,o) == C_ERR) {
|
if (hllMerge(registers,o) == C_ERR) {
|
||||||
addReplySds(c,sdsnew(invalid_hll_err));
|
addReplySds(c,sdsnew(invalid_hll_err));
|
||||||
@ -1329,7 +1329,7 @@ void pfmergeCommand(client *c) {
|
|||||||
hdr = o->ptr;
|
hdr = o->ptr;
|
||||||
if (hdr->encoding == HLL_DENSE) use_dense = 1;
|
if (hdr->encoding == HLL_DENSE) use_dense = 1;
|
||||||
|
|
||||||
/* Merge with this HLL with our 'max' HHL by setting max[i]
|
/* Merge with this HLL with our 'max' HLL by setting max[i]
|
||||||
* to MAX(max[i],hll[i]). */
|
* to MAX(max[i],hll[i]). */
|
||||||
if (hllMerge(max,o) == C_ERR) {
|
if (hllMerge(max,o) == C_ERR) {
|
||||||
addReplySds(c,sdsnew(invalid_hll_err));
|
addReplySds(c,sdsnew(invalid_hll_err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user