Make msg39 not know the details of posdbtable::votebuf

This commit is contained in:
Ivan Skytte Jørgensen
2016-09-06 13:49:26 +02:00
parent e8017aac14
commit 2413f71325
2 changed files with 3 additions and 1 deletions

@ -395,7 +395,7 @@ bool Msg39::controlLoop ( ) {
g_stats.addStat_r ( 0, m_posdbTable.m_t1, m_posdbTable.m_t2, 0x0000ff00 );
}
// accumulate total hits count over each docid split
m_numTotalHits += m_posdbTable.m_docIdVoteBuf.length() / 6;
m_numTotalHits += m_posdbTable.getTotalHits();
// minus the shit we filtered out because of gbminint/gbmaxint/
// gbmin/gbmax/gbsortby/gbrevsortby/gbsortbyint/gbrevsortbyint
m_numTotalHits -= m_posdbTable.m_filtered;

@ -244,6 +244,8 @@ class PosdbTable {
int32_t qdist ,
const QueryTermInfo *qtm ) ;
int64_t getTotalHits() const { return m_docIdVoteBuf.length() / 6; }
// stuff set in setQueryTermInf() function:
SafeBuf m_qiBuf;
int32_t m_numQueryTermInfos;