summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2017-07-03 17:49:48 -0400
committerRandolph Tan <randolph@10gen.com>2017-07-12 13:20:42 -0400
commit1550eb477fcf883e861f63ffc988a6060a2fbfb1 (patch)
tree2ae92c69ae385f2788ec7ab2fad3aa77e7495ee9 /src/mongo/db/exec
parent1d6008b049e65615b13404f0b877034cfa980220 (diff)
downloadmongo-1550eb477fcf883e861f63ffc988a6060a2fbfb1.tar.gz
SERVER-28912 Thread statement id from batched insert command oplog entry
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/update.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/exec/update.cpp b/src/mongo/db/exec/update.cpp
index 879a5c7db05..70b13c08b07 100644
--- a/src/mongo/db/exec/update.cpp
+++ b/src/mongo/db/exec/update.cpp
@@ -481,8 +481,12 @@ void UpdateStage::doInsert() {
WriteUnitOfWork wunit(getOpCtx());
invariant(_collection);
const bool enforceQuota = !request->isGod();
- uassertStatusOK(_collection->insertDocument(
- getOpCtx(), newObj, _params.opDebug, enforceQuota, request->isFromMigration()));
+ // TODO: SERVER-28912 include StmtId
+ uassertStatusOK(_collection->insertDocument(getOpCtx(),
+ InsertStatement(newObj),
+ _params.opDebug,
+ enforceQuota,
+ request->isFromMigration()));
// Technically, we should save/restore state here, but since we are going to return
// immediately after, it would just be wasted work.