summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_rwc_defaults_commands.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2019-12-20 22:22:42 +0000
committerevergreen <evergreen@mongodb.com>2019-12-20 22:22:42 +0000
commit7d925439532fd9bbe222f679bfd2a9de99ce476d (patch)
tree79d7be9a7634257cb2e9009d0062363f1e5c7e3c /src/mongo/s/commands/cluster_rwc_defaults_commands.cpp
parent8a002bc23bb65134c7d7b317abd54b846af05938 (diff)
downloadmongo-7d925439532fd9bbe222f679bfd2a9de99ce476d.tar.gz
SERVER-44890 MongoD RWCDefaults get refreshed through the OpObserver
Diffstat (limited to 'src/mongo/s/commands/cluster_rwc_defaults_commands.cpp')
-rw-r--r--src/mongo/s/commands/cluster_rwc_defaults_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_rwc_defaults_commands.cpp b/src/mongo/s/commands/cluster_rwc_defaults_commands.cpp
index e7976c147e4..756a5b8eeb5 100644
--- a/src/mongo/s/commands/cluster_rwc_defaults_commands.cpp
+++ b/src/mongo/s/commands/cluster_rwc_defaults_commands.cpp
@@ -110,7 +110,7 @@ public:
using InvocationBase::InvocationBase;
Response typedRun(OperationContext* opCtx) {
- if (request().getInMemory()) {
+ if (request().getInMemory() && *request().getInMemory()) {
return ReadWriteConcernDefaults::get(opCtx->getServiceContext()).getDefault(opCtx);
}