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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/ops/delete_request.h b/src/mongo/db/ops/delete_request.h
index 23b3bc81e42..937297b95ae 100644
--- a/src/mongo/db/ops/delete_request.h
+++ b/src/mongo/db/ops/delete_request.h
@@ -33,6 +33,7 @@
#include "mongo/db/jsobj.h"
#include "mongo/db/namespace_string.h"
+#include "mongo/db/pipeline/runtime_constants_gen.h"
#include "mongo/db/query/plan_executor.h"
namespace mongo {
@@ -60,6 +61,9 @@ public:
void setSort(const BSONObj& sort) {
_sort = sort;
}
+ void setRuntimeConstants(const RuntimeConstants& runtimeConstants) {
+ _runtimeConstants = runtimeConstants;
+ }
void setCollation(const BSONObj& collation) {
_collation = collation;
}
@@ -94,6 +98,9 @@ public:
const BSONObj& getSort() const {
return _sort;
}
+ const boost::optional<RuntimeConstants>& getRuntimeConstants() const {
+ return _runtimeConstants;
+ }
const BSONObj& getCollation() const {
return _collation;
}
@@ -130,6 +137,7 @@ private:
BSONObj _proj;
BSONObj _sort;
BSONObj _collation;
+ boost::optional<RuntimeConstants> _runtimeConstants;
// The statement id of this request.
StmtId _stmtId = kUninitializedStmtId;
bool _multi;