summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/perftests.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-11-03 14:36:30 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-11-03 20:13:56 -0500
commita1cc3274956e0bc1a0fc7b7fb98724eb04423a03 (patch)
tree4f01928b71a2ae901d30a7091e1cbc15c1726523 /src/mongo/dbtests/perftests.cpp
parent06a641278afd58caad4a8ecb368aaefb17a0eec1 (diff)
downloadmongo-a1cc3274956e0bc1a0fc7b7fb98724eb04423a03.tar.gz
SERVER-14462 Fix all cases where client is null when we are creating an
OperationContext
Diffstat (limited to 'src/mongo/dbtests/perftests.cpp')
-rw-r--r--src/mongo/dbtests/perftests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/perftests.cpp b/src/mongo/dbtests/perftests.cpp
index 9f80f0ffc29..e90b11b440e 100644
--- a/src/mongo/dbtests/perftests.cpp
+++ b/src/mongo/dbtests/perftests.cpp
@@ -364,10 +364,10 @@ namespace PerfTests {
static int z;
srand( ++z ^ (unsigned) time(0));
#endif
+ Client::initThreadIfNotAlready("perftestthr");
OperationContextImpl txn;
DBDirectClient c(&txn);
- Client::initThreadIfNotAlready("perftestthr");
const unsigned int Batch = batchSize();
while( 1 ) {
unsigned int i = 0;