summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/old_thread_pool.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-06-17 15:22:37 -0400
committerMathias Stearn <mathias@10gen.com>2016-06-22 16:04:36 -0400
commitd74b549a87899dbd5fe347a1a08cdab0536daad2 (patch)
tree2efe54e0ce0e5a821b2cec3eda0efd44c90f619c /src/mongo/util/concurrency/old_thread_pool.cpp
parentf9f3ea2d4afb835b82fe7e97ef1a1c6e2a29c2b5 (diff)
downloadmongo-d74b549a87899dbd5fe347a1a08cdab0536daad2.tar.gz
SERVER-24242 OldThreadPool::schedule() should move its task argument
Diffstat (limited to 'src/mongo/util/concurrency/old_thread_pool.cpp')
-rw-r--r--src/mongo/util/concurrency/old_thread_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/concurrency/old_thread_pool.cpp b/src/mongo/util/concurrency/old_thread_pool.cpp
index c168ae49e6b..a21213932c1 100644
--- a/src/mongo/util/concurrency/old_thread_pool.cpp
+++ b/src/mongo/util/concurrency/old_thread_pool.cpp
@@ -73,7 +73,7 @@ void OldThreadPool::join() {
}
void OldThreadPool::schedule(Task task) {
- fassert(28705, _pool.schedule(task));
+ fassert(28705, _pool.schedule(std::move(task)));
}
} // namespace mongo