summaryrefslogtreecommitdiff
path: root/util/background.cpp
diff options
context:
space:
mode:
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);