diff options
Diffstat (limited to 'src/mongo/db/exec/update.cpp')
| -rw-r--r-- | src/mongo/db/exec/update.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/exec/update.cpp b/src/mongo/db/exec/update.cpp index e2b78460b59..eb568bfb8e4 100644 --- a/src/mongo/db/exec/update.cpp +++ b/src/mongo/db/exec/update.cpp @@ -281,6 +281,7 @@ BSONObj UpdateStage::transformAndUpdate(const Snapshotted<BSONObj>& oldObj, Reco } if (docWasModified) { + // Prepare to write back the modified document WriteUnitOfWork wunit(getOpCtx()); |
