mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 04:07:13 +03:00
fix innerloop strangeness when counting keys in buckets
This commit is contained in:
parent
3e19d43aa5
commit
e57e3481b4
10
Rdb.cpp
10
Rdb.cpp
@ -1424,10 +1424,12 @@ bool Rdb::gotTokenForDump ( ) {
|
||||
RdbBucket *b = m_buckets.m_buckets[i];
|
||||
collnum_t cn = b->getCollnum();
|
||||
int32_t nk = b->getNumKeys();
|
||||
for ( int32_t j = 0 ; j < nk; j++ ) {
|
||||
cr = g_collectiondb.m_recs[cn];
|
||||
if ( cr ) cr->m_treeCount++;
|
||||
}
|
||||
// for ( int32_t j = 0 ; j < nk; j++ ) {
|
||||
// cr = g_collectiondb.m_recs[cn];
|
||||
// if ( cr ) cr->m_treeCount++;
|
||||
// }
|
||||
cr = g_collectiondb.m_recs[cn];
|
||||
if ( cr ) cr->m_treeCount += nk;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user