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:
Ivan Skytte Jørgensen
2016-03-19 21:11:23 +01:00
parent 13283e977e
commit 0885815b6a

@ -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