diff options
author | Huayu Ouyang <huayu.ouyang@mongodb.com> | 2021-05-04 21:25:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-05 16:56:25 +0000 |
commit | 8c5f7e07671ffff208be4ac1aae867370a0b4e98 (patch) | |
tree | 13d831b468eaaef2181ea8daf0402a41bbe54657 /src/mongo/db/write_concern.cpp | |
parent | 589020d961aadba1d38ea88d0b3f4b1878bf3be0 (diff) | |
download | mongo-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.cpp | 3 |
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 { |