diff options
author | David Storch <david.storch@10gen.com> | 2014-09-18 14:06:54 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-09-19 10:46:17 -0400 |
commit | 6572c75e85cd7ec0a3269a13a5290c9a46416a3e (patch) | |
tree | 62ef5685e1323df63f1c00b99f624d3273b4b5e2 /src/mongo/db/exec/delete.h | |
parent | 759b6e8cabfb745b712b5ffd0748561129c3b421 (diff) | |
download | mongo-6572c75e85cd7ec0a3269a13a5290c9a46416a3e.tar.gz |
SERVER-14100 explain for delete
Diffstat (limited to 'src/mongo/db/exec/delete.h')
-rw-r--r-- | src/mongo/db/exec/delete.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/exec/delete.h b/src/mongo/db/exec/delete.h index 48a783c9b85..17dbc79a316 100644 --- a/src/mongo/db/exec/delete.h +++ b/src/mongo/db/exec/delete.h @@ -36,7 +36,11 @@ namespace mongo { class OperationContext; struct DeleteStageParams { - DeleteStageParams() : isMulti(false), shouldCallLogOp(false), fromMigrate(false) { } + DeleteStageParams() : + isMulti(false), + shouldCallLogOp(false), + fromMigrate(false), + isExplain(false) { } // Should we delete all documents returned from the child (a "multi delete"), or at most one // (a "single delete")? @@ -48,6 +52,9 @@ namespace mongo { // Is this delete part of a migrate operation that is essentially like a no-op // when the cluster is observed by an external client. bool fromMigrate; + + // Are we explaining a delete command rather than actually executing it? + bool isExplain; }; /** |