summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/delete_request.h')
-rw-r--r--src/mongo/db/ops/delete_request.h6
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