summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-27 17:23:47 -0400
committerAaron <aaron@10gen.com>2009-05-27 17:23:47 -0400
commit83be71666f140e041406f869ac148d7dc4e2bb36 (patch)
tree7dd7baae25a77ba41d5ab4cd0cd5003968942084 /util
parent3b2ecb5ff075f935c4cb3c6e731f0276ea747c55 (diff)
downloadmongo-83be71666f140e041406f869ac148d7dc4e2bb36.tar.gz
wait for file allocator to finish before removing files
Diffstat (limited to 'util')
-rw-r--r--util/file_allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/file_allocator.h b/util/file_allocator.h
index fdc25a3072e..ece1fe210b8 100644
--- a/util/file_allocator.h
+++ b/util/file_allocator.h
@@ -76,8 +76,8 @@ namespace mongo {
}
void waitUntilFinished() const {
- if ( failed_ )
- return;
+ if ( failed_ )
+ return;
boostlock lk( pendingMutex_ );
while( pending_.size() != 0 )
pendingUpdated_.wait( lk );