mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-16 02:46:08 -04:00
Fix high-frequency term accidental reduction change of endkey
RdbList::constrain() modifies the given endKey parameter, so the docid range could be reduced slightly if one of the terms were a high-freq term.
This commit is contained in:
4
Msg2.cpp
4
Msg2.cpp
@ -172,8 +172,10 @@ bool Msg2::getLists ( ) {
|
||||
false, //owndata
|
||||
true, //usehalfkeys
|
||||
18); //keysize
|
||||
char ek2_copy[18];
|
||||
memcpy(ek2_copy, ek2, sizeof(ek2_copy)); //RdbList::constrain() modifies endkey, so give it a copy
|
||||
m_lists[m_i].constrain(sk2, //startKey
|
||||
ek2, //endKey
|
||||
ek2_copy, //endKey
|
||||
-1, //minRecSizes
|
||||
0, //hintOffset
|
||||
NULL, //hintKey
|
||||
|
Reference in New Issue
Block a user