diff options
author | Geert Bosch <geert@mongodb.com> | 2014-12-10 17:15:45 -0500 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2014-12-12 18:05:34 -0500 |
commit | e067fff4e3f3079d070ec168f32c24db9a51a944 (patch) | |
tree | 5ccdf8c4cbae815a7d485a30c4d2d5bfbdf3aaaa /src/mongo/db/repl/operation_context_repl_mock.cpp | |
parent | 2a148f717998b77199c3dd3d7d4e4e47eb1141ef (diff) | |
download | mongo-e067fff4e3f3079d070ec168f32c24db9a51a944.tar.gz |
SERVER-16493: Have Client own Locker to amortize initialization cost
Diffstat (limited to 'src/mongo/db/repl/operation_context_repl_mock.cpp')
-rw-r--r-- | src/mongo/db/repl/operation_context_repl_mock.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/db/repl/operation_context_repl_mock.cpp b/src/mongo/db/repl/operation_context_repl_mock.cpp index 59239c4117e..b5c44316261 100644 --- a/src/mongo/db/repl/operation_context_repl_mock.cpp +++ b/src/mongo/db/repl/operation_context_repl_mock.cpp @@ -36,15 +36,8 @@ namespace mongo { namespace repl { -namespace { - // Dispenses unique OperationContext identifiers - AtomicUInt64 idCounter(0); -} - OperationContextReplMock::OperationContextReplMock() - : _lockState(new MMAPV1LockerImpl(idCounter.addAndFetch(1))) { - - } + : _lockState(new MMAPV1LockerImpl()) { } OperationContextReplMock::~OperationContextReplMock() {} |