diff options
author | Charlie <charlie.swanson@mongodb.com> | 2015-04-14 10:27:18 -0400 |
---|---|---|
committer | Charlie <charlie.swanson@mongodb.com> | 2015-04-14 10:27:18 -0400 |
commit | 7a36b1598c45ea07a4713d4630fee204ff782e96 (patch) | |
tree | 4f8f67db69d5ac3f7412f1d136416f534fefd135 /src/mongo/db/ops/parsed_delete.h | |
parent | 9637c0ae2721a07386af4fb4c402ee061ed7532f (diff) | |
download | mongo-7a36b1598c45ea07a4713d4630fee204ff782e96.tar.gz |
SERVER-16063 Rewrite the findAndModify command.
Changed UpdateStage to return the prior or newly-updated version of
a document if request. also changed DeleteStage to return the deleted
document if requested.
Added explain support to the findAndModify command.
Diffstat (limited to 'src/mongo/db/ops/parsed_delete.h')
-rw-r--r-- | src/mongo/db/ops/parsed_delete.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/ops/parsed_delete.h b/src/mongo/db/ops/parsed_delete.h index cb189bfccc8..ad473d35e91 100644 --- a/src/mongo/db/ops/parsed_delete.h +++ b/src/mongo/db/ops/parsed_delete.h @@ -44,6 +44,10 @@ namespace mongo { * via the parseRequest() method. A ParsedDelete can then be used to retrieve a PlanExecutor * capable of executing the delete. * + * It is invalid to request that the DeleteStage return the deleted document during a + * multi-remove. It is also invalid to request that a ProjectionStage be applied to the + * DeleteStage if the DeleteStage would not return the deleted document. + * * A delete request is parsed to a CanonicalQuery, so this class is a thin, delete-specific * wrapper around canonicalization. * |