From e57e3481b4beff8940848108a6107e94c318acc4 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 14 Oct 2015 13:52:42 -0600 Subject: [PATCH] fix innerloop strangeness when counting keys in buckets --- Rdb.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Rdb.cpp b/Rdb.cpp index e21e62ea..1a2c74b8 100644 --- a/Rdb.cpp +++ b/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; } }