diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-03-17 19:55:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-17 21:52:48 +0000 |
commit | 99c2db026f7141d13aa4601479704478c1cfab40 (patch) | |
tree | 14555a6ff6ee156ce39297632a9e85673649e7ea /src/mongo/db/logical_session_cache_impl.cpp | |
parent | a585eeb9a28570a32067aa98a460ee675d735a7b (diff) | |
download | mongo-99c2db026f7141d13aa4601479704478c1cfab40.tar.gz |
SERVER-64605 Allow internal sessions on standalone replica sets
Diffstat (limited to 'src/mongo/db/logical_session_cache_impl.cpp')
-rw-r--r-- | src/mongo/db/logical_session_cache_impl.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/logical_session_cache_impl.cpp b/src/mongo/db/logical_session_cache_impl.cpp index 7b81849b146..2f42b90960f 100644 --- a/src/mongo/db/logical_session_cache_impl.cpp +++ b/src/mongo/db/logical_session_cache_impl.cpp @@ -43,7 +43,6 @@ #include "mongo/logv2/log.h" #include "mongo/logv2/log_severity_suppressor.h" #include "mongo/platform/atomic_word.h" -#include "mongo/s/is_mongos.h" #include "mongo/util/duration.h" #include "mongo/util/scopeguard.h" @@ -96,11 +95,6 @@ Status LogicalSessionCacheImpl::startSession(OperationContext* opCtx, Status LogicalSessionCacheImpl::vivify(OperationContext* opCtx, const LogicalSessionId& lsid) { auto parentLsid = getParentSessionId(lsid); - if (parentLsid) { - uassert(ErrorCodes::InvalidOptions, - "Internal transactions are only supported in sharded clusters", - isMongos() || serverGlobalParams.clusterRole != ClusterRole::None); - } stdx::lock_guard lg(_mutex); |