Permalink
Browse files

don't wassert for too much data written uncommited since it propogate…

…s via GLE
  • Loading branch information...
erh committed Jun 30, 2011
1 parent c40ec76 commit b6141de70ed78a676c28adf2469ceb15d5b886a1
Showing with 3 additions and 2 deletions.
  1. +3 −2 db/dur_commitjob.cpp
View
@@ -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();
}
}
}

0 comments on commit b6141de

Please sign in to comment.