summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update_request.h
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2014-10-20 17:08:55 -0400
committerJason Rassi <rassi@10gen.com>2014-11-20 12:52:25 -0500
commit429dc5819eb37e21d9e5c4573aae8421efd50ed7 (patch)
treee64019b8d4fd795cac5a778df79a0983bb34bcf7 /src/mongo/db/ops/update_request.h
parent1b204eba0dc80f4007cb88b995b761a8bc0987fc (diff)
downloadmongo-429dc5819eb37e21d9e5c4573aae8421efd50ed7.tar.gz
SERVER-15675 Remove OperationContext from UpdateRequest/DeleteRequest
The write execution machinery should have a handle to the operation context, not the write request structs.
Diffstat (limited to 'src/mongo/db/ops/update_request.h')
-rw-r--r--src/mongo/db/ops/update_request.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mongo/db/ops/update_request.h b/src/mongo/db/ops/update_request.h
index 381a012912b..5c2692ca3ed 100644
--- a/src/mongo/db/ops/update_request.h
+++ b/src/mongo/db/ops/update_request.h
@@ -43,9 +43,8 @@ namespace mongo {
class UpdateRequest {
public:
- inline UpdateRequest(OperationContext* txn, const NamespaceString& nsString)
- : _txn(txn)
- , _nsString(nsString)
+ inline UpdateRequest(const NamespaceString& nsString)
+ : _nsString(nsString)
, _god(false)
, _upsert(false)
, _multi(false)
@@ -135,10 +134,6 @@ namespace mongo {
return _lifecycle;
}
- inline OperationContext* getOpCtx() const {
- return _txn;
- }
-
inline void setExplain(bool value = true) {
_isExplain = value;
}
@@ -169,9 +164,6 @@ namespace mongo {
}
private:
- // Not owned. Must live as long as the request lives.
- OperationContext* _txn;
-
const NamespaceString& _nsString;
// Contains the query that selects documents to update.