diff options
-rw-r--r-- | db/dur_commitjob.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/dur_commitjob.cpp b/db/dur_commitjob.cpp index c67f37c6bfa..af77c4fbffa 100644 --- a/db/dur_commitjob.cpp +++ b/db/dur_commitjob.cpp @@ -206,9 +206,10 @@ namespace mongo { // 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; + 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"); + // wassert makes getLastError show an error, so we just print stack trace + printStackTrace(); } } } |