summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete_request.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-07-09 04:15:56 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-07-18 15:16:15 -0400
commit9066a06214f115c182c2b83ed40e939e05b9c1f8 (patch)
tree4239137f6521f1d1d77ecc3c3be89b6e6779f7f1 /src/mongo/db/ops/delete_request.h
parent3c3d656668e26645492ee3dafb241631352426d4 (diff)
downloadmongo-9066a06214f115c182c2b83ed40e939e05b9c1f8.tar.gz
SERVER-13961 Pass OperationContext into WhereCallbackReal
There are no functional changes in this commit, just preparation for the subsequent one, which will add operation context to the JS execution scope.
Diffstat (limited to 'src/mongo/db/ops/delete_request.h')
-rw-r--r--src/mongo/db/ops/delete_request.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete_request.h b/src/mongo/db/ops/delete_request.h
index 4e10cb409c2..3ce0a0bb9fd 100644
--- a/src/mongo/db/ops/delete_request.h
+++ b/src/mongo/db/ops/delete_request.h
@@ -39,7 +39,8 @@ namespace mongo {
class DeleteRequest {
MONGO_DISALLOW_COPYING(DeleteRequest);
public:
- explicit DeleteRequest(const NamespaceString& nsString) :
+ explicit DeleteRequest(OperationContext* txn, const NamespaceString& nsString) :
+ _txn(txn),
_nsString(nsString),
_multi(false),
_logop(false),
@@ -55,10 +56,12 @@ namespace mongo {
bool isMulti() const { return _multi; }
bool shouldCallLogOp() const { return _logop; }
bool isGod() const { return _god; }
+ OperationContext* getOpCtx() const { return _txn; }
std::string toString() const;
private:
+ OperationContext* _txn;
const NamespaceString& _nsString;
BSONObj _query;
bool _multi;