diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2020-06-09 12:37:49 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-09 13:35:38 +0000 |
commit | 72d90d17272591a8bbe180d6936a7683bfe88be0 (patch) | |
tree | 6fb0b7d24d6f61f234e4caf1c7f6b805a711d61c /src/mongo/db/s/collection_sharding_runtime.cpp | |
parent | dd7e51f1a8512802829ac92921fed0b0c74f6548 (diff) | |
download | mongo-72d90d17272591a8bbe180d6936a7683bfe88be0.tar.gz |
SERVER-48642 Remove unused opCtx parameter in CSR enterCriticalSection methods
Diffstat (limited to 'src/mongo/db/s/collection_sharding_runtime.cpp')
-rw-r--r-- | src/mongo/db/s/collection_sharding_runtime.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/s/collection_sharding_runtime.cpp b/src/mongo/db/s/collection_sharding_runtime.cpp index e8647036513..6c468ddff0f 100644 --- a/src/mongo/db/s/collection_sharding_runtime.cpp +++ b/src/mongo/db/s/collection_sharding_runtime.cpp @@ -166,14 +166,12 @@ void CollectionShardingRuntime::checkShardVersionOrThrow(OperationContext* opCtx (void)_getMetadataWithVersionCheckAt(opCtx, boost::none); } -void CollectionShardingRuntime::enterCriticalSectionCatchUpPhase(OperationContext* opCtx, - const CSRLock&) { +void CollectionShardingRuntime::enterCriticalSectionCatchUpPhase(const CSRLock&) { invariant(!_shardVersionInRecoverOrRefresh); _critSec.enterCriticalSectionCatchUpPhase(); } -void CollectionShardingRuntime::enterCriticalSectionCommitPhase(OperationContext* opCtx, - const CSRLock&) { +void CollectionShardingRuntime::enterCriticalSectionCommitPhase(const CSRLock&) { invariant(!_shardVersionInRecoverOrRefresh); _critSec.enterCriticalSectionCommitPhase(); } @@ -456,7 +454,7 @@ CollectionCriticalSection::CollectionCriticalSection(OperationContext* opCtx, Na auto* const csr = CollectionShardingRuntime::get(_opCtx, _nss); auto csrLock = CollectionShardingRuntime::CSRLock::lockExclusive(opCtx, csr); invariant(csr->getCurrentMetadataIfKnown()); - csr->enterCriticalSectionCatchUpPhase(_opCtx, csrLock); + csr->enterCriticalSectionCatchUpPhase(csrLock); } CollectionCriticalSection::~CollectionCriticalSection() { @@ -476,7 +474,7 @@ void CollectionCriticalSection::enterCommitPhase() { auto* const csr = CollectionShardingRuntime::get(_opCtx, _nss); auto csrLock = CollectionShardingRuntime::CSRLock::lockExclusive(_opCtx, csr); invariant(csr->getCurrentMetadataIfKnown()); - csr->enterCriticalSectionCommitPhase(_opCtx, csrLock); + csr->enterCriticalSectionCommitPhase(csrLock); } } // namespace mongo |