summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
authorHuayu Ouyang <huayu.ouyang@mongodb.com>2021-05-04 21:25:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-05 16:56:25 +0000
commit8c5f7e07671ffff208be4ac1aae867370a0b4e98 (patch)
tree13d831b468eaaef2181ea8daf0402a41bbe54657 /src/mongo/db/write_concern.cpp
parent589020d961aadba1d38ea88d0b3f4b1878bf3be0 (diff)
downloadmongo-8c5f7e07671ffff208be4ac1aae867370a0b4e98.tar.gz
SERVER-56607 Remove unused getLastErrorDefaultsWasApplied variable
Diffstat (limited to 'src/mongo/db/write_concern.cpp')
-rw-r--r--src/mongo/db/write_concern.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/write_concern.cpp b/src/mongo/db/write_concern.cpp
index 550fefd7b7a..c87afff87cd 100644
--- a/src/mongo/db/write_concern.cpp
+++ b/src/mongo/db/write_concern.cpp
@@ -94,7 +94,6 @@ StatusWith<WriteConcernOptions> extractWriteConcern(OperationContext* opCtx,
bool clientSuppliedWriteConcern = !writeConcern.usedDefault;
bool customDefaultWasApplied = false;
- bool getLastErrorDefaultsWasApplied = false;
// If no write concern is specified in the command, then use the cluster-wide default WC (if
// there is one), or else the default WC {w:1}.
@@ -139,8 +138,6 @@ StatusWith<WriteConcernOptions> extractWriteConcern(OperationContext* opCtx,
provenance.setSource(ReadWriteConcernProvenance::Source::clientSupplied);
} else if (customDefaultWasApplied) {
provenance.setSource(ReadWriteConcernProvenance::Source::customDefault);
- } else if (getLastErrorDefaultsWasApplied) {
- provenance.setSource(ReadWriteConcernProvenance::Source::getLastErrorDefaults);
} else if (opCtx->getClient()->isInDirectClient() || isInternalClient) {
provenance.setSource(ReadWriteConcernProvenance::Source::internalWriteDefault);
} else {