summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-02-28 16:28:20 -0500
committerJames Wahlin <james@mongodb.com>2018-03-03 08:33:17 -0500
commit13b8e62cd9609f10688a1896cb80efa5d3c82859 (patch)
treeebd8a953e6ab3c9342ae17030ae6d1878ad24ea6 /src/mongo/db/commands
parenta0617148fdce05cd5705613da1a206c16cd9e2c0 (diff)
downloadmongo-13b8e62cd9609f10688a1896cb80efa5d3c82859.tar.gz
SERVER-33355 Support readConcern level snapshot reads on secondaries
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/get_last_error.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/commands/get_last_error.cpp b/src/mongo/db/commands/get_last_error.cpp
index c7673052e8b..900434db737 100644
--- a/src/mongo/db/commands/get_last_error.cpp
+++ b/src/mongo/db/commands/get_last_error.cpp
@@ -236,10 +236,7 @@ public:
// Validate write concern no matter what, this matches 2.4 behavior
//
if (status.isOK()) {
- // Ensure options are valid for this host. Since getLastError doesn't do writes itself,
- // treat it as if these are admin database writes, which need to be replicated so we do
- // the strictest checks write concern checks.
- status = validateWriteConcern(opCtx, writeConcern, NamespaceString::kAdminDb);
+ status = validateWriteConcern(opCtx, writeConcern);
}
if (!status.isOK()) {