diff options
Diffstat (limited to 'src/mongo/db/repl/replication_info.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp index 2172307d791..110831f1663 100644 --- a/src/mongo/db/repl/replication_info.cpp +++ b/src/mongo/db/repl/replication_info.cpp @@ -493,7 +493,7 @@ public: wireSpec->incomingExternalClient.maxWireVersion); } - result.append(HelloCommandReply::kReadOnlyFieldName, storageGlobalParams.readOnly); + result.append(HelloCommandReply::kReadOnlyFieldName, opCtx->readOnly()); if (auto param = ServerParameterSet::getNodeParameterSet()->getIfExists( kAutomationServiceDescriptorFieldName)) { |