Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit360ca27

Browse files
committed
Remove mergeHyperLogLog.
It's buggy. If somebody needs this later, they'll need to put backa non-buggy vesion of it.Discussion: CAM3SWZT-i6R9JU5YXa8MJUou2_r3LfGJZpQ9tYa1BYxfkj0=cQ@mail.gmail.comDiscussion: CAM3SWZRUOLsYoTT83QgdUy9D8ehYWm_nvbrrfcOOzikiRfFY7g@mail.gmail.comPeter Geoghegan
1 parent59eb551 commit360ca27

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

‎src/backend/lib/hyperloglog.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -220,28 +220,6 @@ estimateHyperLogLog(hyperLogLogState *cState)
220220
returnresult;
221221
}
222222

223-
/*
224-
* Merges the estimate from one HyperLogLog state to another, returning the
225-
* estimate of their union.
226-
*
227-
* The number of registers in each must match.
228-
*/
229-
void
230-
mergeHyperLogLog(hyperLogLogState*cState,consthyperLogLogState*oState)
231-
{
232-
intr;
233-
234-
if (cState->nRegisters!=oState->nRegisters)
235-
elog(ERROR,"number of registers mismatch: %zu != %zu",
236-
cState->nRegisters,oState->nRegisters);
237-
238-
for (r=0;r<cState->nRegisters;++r)
239-
{
240-
cState->hashesArr[r]=Max(cState->hashesArr[r],oState->hashesArr[r]);
241-
}
242-
}
243-
244-
245223
/*
246224
* Worker for addHyperLogLog().
247225
*

‎src/include/lib/hyperloglog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ extern void initHyperLogLog(hyperLogLogState *cState, uint8 bwidth);
6363
externvoidinitHyperLogLogError(hyperLogLogState*cState,doubleerror);
6464
externvoidaddHyperLogLog(hyperLogLogState*cState,uint32hash);
6565
externdoubleestimateHyperLogLog(hyperLogLogState*cState);
66-
externvoidmergeHyperLogLog(hyperLogLogState*cState,consthyperLogLogState*oState);
6766
externvoidfreeHyperLogLog(hyperLogLogState*cState);
6867

6968
#endif/* HYPERLOGLOG_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp