From 7b4b8b27bdc4a980b46d864226947f234fcd1a0e Mon Sep 17 00:00:00 2001 From: Matt Wells Date: Thu, 5 Jun 2014 14:58:20 -0700 Subject: [PATCH] more debug msgs --- RdbBase.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RdbBase.cpp b/RdbBase.cpp index a79f716a..ae9c9251 100644 --- a/RdbBase.cpp +++ b/RdbBase.cpp @@ -1182,6 +1182,8 @@ void RdbBase::doneWrapper2 ( ) { void doneWrapper3 ( void *state ) { RdbBase *THIS = (RdbBase *)state; + log("rdb: thread completed rename operation for collnum=%li " + "#threads=%li",(long)THIS->m_collnum,THIS->m_numThreads); THIS->doneWrapper4 ( ); } @@ -1967,10 +1969,12 @@ void RdbBase::gotTokenForMerge ( ) { if ( i > 0 && prevSize < total/4 ) tooBig = 1; log(LOG_INFO,"merge: i=%li n=%li ratio=%.2f adjratio=%.2f " "minr=%.2f mint=%lli mini=%li prevFileSize=%lli " - "mergeFileSize=%lli tooBig=%li oldestfile=%.02fdays", + "mergeFileSize=%lli tooBig=%li oldestfile=%.02fdays " + "collnum=%li", i,n,ratio,adjratio,minr,mint,mini, prevSize , total ,(long)tooBig, - ((float)nowLocal-date)/(24*3600.0) ); + ((float)nowLocal-date)/(24*3600.0) , + (long)m_collnum); // . if we are merging the last file, penalize it // . otherwise, we dump little files out and almost always