summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency')
-rw-r--r--src/mongo/db/concurrency/deferred_writer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/deferred_writer.cpp b/src/mongo/db/concurrency/deferred_writer.cpp
index 3e609009931..2dbda1013c4 100644
--- a/src/mongo/db/concurrency/deferred_writer.cpp
+++ b/src/mongo/db/concurrency/deferred_writer.cpp
@@ -178,7 +178,11 @@ bool DeferredWriter::insertDocument(BSONObj obj) {
// Add the object to the buffer.
_numBytes += obj.objsize();
- fassert(40588, _pool->schedule([this, obj] { _worker(InsertStatement(obj.getOwned())); }));
+ _pool->schedule([this, obj](auto status) {
+ fassert(40588, status);
+
+ _worker(InsertStatement(obj.getOwned()));
+ });
return true;
}