summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-06 17:28:25 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-06 17:28:25 -0400
commit1b4e06c64eecb8bb80ee6aacf311457fcf9e375d (patch)
tree56721d33966a1b767f11b2d8b64ffa95bf9b21e3
parentc1007834f6c7d724e824a91c60ab1e2aef2e07c9 (diff)
downloadmongo-1b4e06c64eecb8bb80ee6aacf311457fcf9e375d.tar.gz
hack for sleep overflow SERVER-1098
-rw-r--r--db/db.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 9ff49ba183a..51369bbb5e9 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -429,6 +429,8 @@ namespace mongo {
class DataFileSync : public BackgroundJob {
public:
void run(){
+ if ( _sleepsecs > 2100 )
+ _sleepsecs = 2100;
log(1) << "will flush memory every: " << _sleepsecs << " seconds" << endl;
int time_flushing = 0;
while ( ! inShutdown() ){