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/ops/delete_request.h | |
parent | 759b6e8cabfb745b712b5ffd0748561129c3b421 (diff) | |
download | mongo-6572c75e85cd7ec0a3269a13a5290c9a46416a3e.tar.gz |
SERVER-14100 explain for delete
Diffstat (limited to 'src/mongo/db/ops/delete_request.h')
-rw-r--r-- | src/mongo/db/ops/delete_request.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete_request.h b/src/mongo/db/ops/delete_request.h index 53f8d13d475..ee58c59d476 100644 --- a/src/mongo/db/ops/delete_request.h +++ b/src/mongo/db/ops/delete_request.h @@ -45,13 +45,15 @@ namespace mongo { _multi(false), _logop(false), _god(false), - _fromMigrate(false) {} + _fromMigrate(false), + _isExplain(false) {} void setQuery(const BSONObj& query) { _query = query; } void setMulti(bool multi = true) { _multi = multi; } void setUpdateOpLog(bool logop = true) { _logop = logop; } void setGod(bool god = true) { _god = god; } void setFromMigrate(bool fromMigrate = true) { _fromMigrate = fromMigrate; } + void setExplain(bool isExplain = true) { _isExplain = isExplain; } const NamespaceString& getNamespaceString() const { return _nsString; } const BSONObj& getQuery() const { return _query; } @@ -59,6 +61,7 @@ namespace mongo { bool shouldCallLogOp() const { return _logop; } bool isGod() const { return _god; } bool isFromMigrate() const { return _fromMigrate; } + bool isExplain() const { return _isExplain; } OperationContext* getOpCtx() const { return _txn; } std::string toString() const; @@ -71,6 +74,7 @@ namespace mongo { bool _logop; bool _god; bool _fromMigrate; + bool _isExplain; }; } // namespace mongo |