summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.h
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2017-03-07 12:00:08 -0500
committerMaria van Keulen <maria@mongodb.com>2017-03-07 12:00:08 -0500
commit589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79 (patch)
treec7a090ffdd56a91ae677e2492c61b820af44f964 /src/mongo/db/op_observer_impl.h
parent3cba97198638df3750e3b455e2ad57af7ee536ae (diff)
downloadmongo-589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79.tar.gz
SERVER-27938 Rename all OperationContext variables to opCtx
This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
Diffstat (limited to 'src/mongo/db/op_observer_impl.h')
-rw-r--r--src/mongo/db/op_observer_impl.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mongo/db/op_observer_impl.h b/src/mongo/db/op_observer_impl.h
index d8ccfbd678d..bcd9e45171f 100644
--- a/src/mongo/db/op_observer_impl.h
+++ b/src/mongo/db/op_observer_impl.h
@@ -39,46 +39,46 @@ public:
OpObserverImpl() = default;
virtual ~OpObserverImpl() = default;
- void onCreateIndex(OperationContext* txn,
+ void onCreateIndex(OperationContext* opCtx,
const std::string& ns,
BSONObj indexDoc,
bool fromMigrate) override;
- void onInserts(OperationContext* txn,
+ void onInserts(OperationContext* opCtx,
const NamespaceString& ns,
std::vector<BSONObj>::const_iterator begin,
std::vector<BSONObj>::const_iterator end,
bool fromMigrate) override;
- void onUpdate(OperationContext* txn, const OplogUpdateEntryArgs& args) override;
- CollectionShardingState::DeleteState aboutToDelete(OperationContext* txn,
+ void onUpdate(OperationContext* opCtx, const OplogUpdateEntryArgs& args) override;
+ CollectionShardingState::DeleteState aboutToDelete(OperationContext* opCtx,
const NamespaceString& ns,
const BSONObj& doc) override;
- void onDelete(OperationContext* txn,
+ void onDelete(OperationContext* opCtx,
const NamespaceString& ns,
CollectionShardingState::DeleteState deleteState,
bool fromMigrate) override;
- void onOpMessage(OperationContext* txn, const BSONObj& msgObj) override;
- void onCreateCollection(OperationContext* txn,
+ void onOpMessage(OperationContext* opCtx, const BSONObj& msgObj) override;
+ void onCreateCollection(OperationContext* opCtx,
const NamespaceString& collectionName,
const CollectionOptions& options,
const BSONObj& idIndex) override;
- void onCollMod(OperationContext* txn,
+ void onCollMod(OperationContext* opCtx,
const std::string& dbName,
const BSONObj& collModCmd) override;
- void onDropDatabase(OperationContext* txn, const std::string& dbName) override;
- void onDropCollection(OperationContext* txn, const NamespaceString& collectionName) override;
- void onDropIndex(OperationContext* txn,
+ void onDropDatabase(OperationContext* opCtx, const std::string& dbName) override;
+ void onDropCollection(OperationContext* opCtx, const NamespaceString& collectionName) override;
+ void onDropIndex(OperationContext* opCtx,
const std::string& dbName,
const BSONObj& idxDescriptor) override;
- void onRenameCollection(OperationContext* txn,
+ void onRenameCollection(OperationContext* opCtx,
const NamespaceString& fromCollection,
const NamespaceString& toCollection,
bool dropTarget,
bool stayTemp) override;
- void onApplyOps(OperationContext* txn,
+ void onApplyOps(OperationContext* opCtx,
const std::string& dbName,
const BSONObj& applyOpCmd) override;
- void onEmptyCapped(OperationContext* txn, const NamespaceString& collectionName);
- void onConvertToCapped(OperationContext* txn,
+ void onEmptyCapped(OperationContext* opCtx, const NamespaceString& collectionName);
+ void onConvertToCapped(OperationContext* opCtx,
const NamespaceString& collectionName,
double size) override;
};