summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/repltests.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-28 12:21:39 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-28 12:21:39 -0400
commit89fcbab94c7103105e8c72f654a5774a066bdb90 (patch)
tree5dccab74eaf78f104c8bbbbb869eed0374ecd02b /src/mongo/dbtests/repltests.cpp
parent52edab726185cbba1401cb46de221fb3d1cb0408 (diff)
downloadmongo-89fcbab94c7103105e8c72f654a5774a066bdb90.tar.gz
Revert "SERVER-13961 Add OperationContext argument to Client::Context"
This reverts commit 52edab726185cbba1401cb46de221fb3d1cb0408.
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r--src/mongo/dbtests/repltests.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp
index 11338a61225..eb1b45065ad 100644
--- a/src/mongo/dbtests/repltests.cpp
+++ b/src/mongo/dbtests/repltests.cpp
@@ -65,7 +65,7 @@ namespace ReplTests {
public:
Base() : _lk(_txn.lockState()),
_client(&_txn),
- _context(&_txn, ns()) {
+ _context(ns()) {
oldRepl();
replSettings.replSet = "";
@@ -121,7 +121,7 @@ namespace ReplTests {
}
int count() const {
Lock::GlobalWrite lk(_txn.lockState());
- Client::Context ctx(&_txn, ns() );
+ Client::Context ctx( ns() );
Database* db = ctx.db();
Collection* coll = db->getCollection( &_txn, ns() );
if ( !coll ) {
@@ -140,7 +140,7 @@ namespace ReplTests {
static int opCount() {
OperationContextImpl txn;
Lock::GlobalWrite lk(txn.lockState());
- Client::Context ctx(&txn, cllNS() );
+ Client::Context ctx( cllNS() );
Database* db = ctx.db();
Collection* coll = db->getCollection( &txn, cllNS() );
@@ -163,7 +163,7 @@ namespace ReplTests {
vector< BSONObj > ops;
{
- Client::Context ctx(&txn, cllNS() );
+ Client::Context ctx( cllNS() );
Database* db = ctx.db();
Collection* coll = db->getCollection( &txn, cllNS() );
@@ -176,7 +176,7 @@ namespace ReplTests {
delete it;
}
{
- Client::Context ctx(&txn, ns() );
+ Client::Context ctx( ns() );
BSONObjBuilder b;
b.append("host", "localhost");
b.appendTimestamp("syncedTo", 0);
@@ -192,7 +192,7 @@ namespace ReplTests {
static void printAll( const char *ns ) {
OperationContextImpl txn;
Lock::GlobalWrite lk(txn.lockState());
- Client::Context ctx(&txn, ns );
+ Client::Context ctx( ns );
Database* db = ctx.db();
Collection* coll = db->getCollection( &txn, ns );
@@ -213,7 +213,7 @@ namespace ReplTests {
static void deleteAll( const char *ns ) {
OperationContextImpl txn;
Lock::GlobalWrite lk(txn.lockState());
- Client::Context ctx(&txn, ns );
+ Client::Context ctx( ns );
Database* db = ctx.db();
Collection* coll = db->getCollection( &txn, ns );
@@ -235,7 +235,7 @@ namespace ReplTests {
static void insert( const BSONObj &o ) {
OperationContextImpl txn;
Lock::GlobalWrite lk(txn.lockState());
- Client::Context ctx(&txn, ns() );
+ Client::Context ctx( ns() );
Database* db = ctx.db();
Collection* coll = db->getCollection( &txn, ns() );