diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-07-09 04:15:56 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-07-18 15:16:15 -0400 |
commit | 9066a06214f115c182c2b83ed40e939e05b9c1f8 (patch) | |
tree | 4239137f6521f1d1d77ecc3c3be89b6e6779f7f1 /src/mongo/db/ops/delete_request.h | |
parent | 3c3d656668e26645492ee3dafb241631352426d4 (diff) | |
download | mongo-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.h | 5 |
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; |