diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
commit | 589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79 (patch) | |
tree | c7a090ffdd56a91ae677e2492c61b820af44f964 /src/mongo/db/clientlistplugin.cpp | |
parent | 3cba97198638df3750e3b455e2ad57af7ee536ae (diff) | |
download | mongo-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/clientlistplugin.cpp')
-rw-r--r-- | src/mongo/db/clientlistplugin.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/clientlistplugin.cpp b/src/mongo/db/clientlistplugin.cpp index 0cd881d869e..73fb06865d3 100644 --- a/src/mongo/db/clientlistplugin.cpp +++ b/src/mongo/db/clientlistplugin.cpp @@ -57,7 +57,7 @@ public: ClientListPlugin() : WebStatusPlugin("clients", 20) {} virtual void init() {} - virtual void run(OperationContext* txn, std::stringstream& ss) { + virtual void run(OperationContext* opCtx, std::stringstream& ss) { using namespace html; ss << "\n<table border=1 cellpadding=2 cellspacing=0>"; @@ -78,7 +78,7 @@ public: << "</tr>\n"; - _processAllClients(txn->getClient()->getServiceContext(), ss); + _processAllClients(opCtx->getClient()->getServiceContext(), ss); ss << "</table>\n"; } @@ -92,23 +92,23 @@ private: // Make the client stable stdx::lock_guard<Client> lk(*client); - const OperationContext* txn = client->getOperationContext(); - if (!txn) + const OperationContext* opCtx = client->getOperationContext(); + if (!opCtx) continue; - CurOp* curOp = CurOp::get(txn); + CurOp* curOp = CurOp::get(opCtx); if (!curOp) continue; ss << "<tr><td>" << client->desc() << "</td>"; - tablecell(ss, txn->getOpID()); + tablecell(ss, opCtx->getOpID()); tablecell(ss, true); // LockState { Locker::LockerInfo lockerInfo; - txn->lockState()->getLockerInfo(&lockerInfo); + opCtx->lockState()->getLockerInfo(&lockerInfo); BSONObjBuilder lockerInfoBuilder; fillLockerInfo(lockerInfo, lockerInfoBuilder); |