Skip to content

Commit

Permalink
BackgroundJob::wait bug SERVER-1628
Browse files Browse the repository at this point in the history
Conflicts:

	util/background.cpp
  • Loading branch information
erh committed Aug 16, 2010
1 parent 81da9cd commit 67159d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions util/background.cpp
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 67159d2

Please sign in to comment.