summaryrefslogtreecommitdiff
path: root/util/background.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-08-18 09:23:15 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-08-18 09:23:15 +0200
commit3b9581e84e19723087b31b79674801b6c06ae533 (patch)
tree5568dbd7199b1ce64ace1cec26b590c1431e872d /util/background.cpp
parentd7ec8115ec4b160ed74c1a8a06a1c171d76370ac (diff)
downloadmongodb-3b9581e84e19723087b31b79674801b6c06ae533.tar.gz
Imported Upstream version 1.6.1
Diffstat (limited to 'util/background.cpp')
-rw-r--r--util/background.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/util/background.cpp b/util/background.cpp
index a6d8290..ec5483c 100644
--- a/util/background.cpp
+++ b/util/background.cpp
@@ -65,8 +65,7 @@ namespace mongo {
}
bool BackgroundJob::wait(int msMax, unsigned maxsleep) {
- assert( state != NotStarted );
- unsigned ms = 0;
+ unsigned ms = 1;
Date_t start = jsTime();
while ( state != Done ) {
sleepmillis(ms);
@@ -84,7 +83,7 @@ namespace mongo {
/* wait for several jobs to finish. */
void BackgroundJob::wait(list<BackgroundJob*>& L, unsigned maxsleep) {
- unsigned ms = 0;
+ unsigned ms = 1;
{
x:
sleepmillis(ms);