summaryrefslogtreecommitdiff
path: root/db/dur_commitjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/dur_commitjob.cpp')
-rw-r--r--db/dur_commitjob.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/db/dur_commitjob.cpp b/db/dur_commitjob.cpp
index 2d57ffd..c67f37c 100644
--- a/db/dur_commitjob.cpp
+++ b/db/dur_commitjob.cpp
@@ -200,8 +200,17 @@ namespace mongo {
log() << "debug nsincecommitifneeded:" << _nSinceCommitIfNeededCall << " bytes:" << _bytes << endl;
}
#endif
- if ( _bytes >= UncommittedBytesLimit * 3 ) {
- wassert( ! "DR102 too much data written uncommitted" );
+ if (_bytes > UncommittedBytesLimit * 3) {
+ static time_t lastComplain;
+ static unsigned nComplains;
+ // throttle logging
+ if( ++nComplains < 100 || time(0) - lastComplain >= 60 ) {
+ lastComplain = time(0);
+ log() << "replSet warning DR102 too much data written uncommitted " << _bytes/1000000.0 << "MB" << endl;
+ if( nComplains < 10 || nComplains % 10 == 0 ) {
+ wassert(!"replSet warning DR102 too much data written uncommitted");
+ }
+ }
}
}
}