diff options
author | Eric Milkie <milkie@10gen.com> | 2015-01-14 11:34:43 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2015-01-14 14:54:37 -0500 |
commit | ec1736b050bff0dd5a4ef8037d951e58a8e21da3 (patch) | |
tree | 2a843f358d788899d6c267b0ec8e5f7877144e1f /src/mongo/util/queue.h | |
parent | e9ea48278ef98f6c51a4722108026e2f31ca201e (diff) | |
download | mongo-ec1736b050bff0dd5a4ef8037d951e58a8e21da3.tar.gz |
SERVER-16834 bgsync::shutdown() now unblocks threads waiting in BlockingQueue::push()
Diffstat (limited to 'src/mongo/util/queue.h')
-rw-r--r-- | src/mongo/util/queue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/util/queue.h b/src/mongo/util/queue.h index 5f87256657f..d6faaccddcc 100644 --- a/src/mongo/util/queue.h +++ b/src/mongo/util/queue.h @@ -112,6 +112,7 @@ namespace mongo { scoped_lock l(_lock); _queue = std::queue<T>(); _currentSize = 0; + _cvNoLongerFull.notify_one(); } bool tryPop( T & t ) { |