diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-05-07 16:21:38 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-13 15:47:52 +0000 |
commit | 84fd6eb9c0a700329dc0750261d05dd6741791cc (patch) | |
tree | 297aa121c0315d4bbaf8c323a2ac4c494448b9b1 /src/mongo/db/service_entry_point_common.cpp | |
parent | 4497a21aae1bf9eabce5394798582f113d2f5a45 (diff) | |
download | mongo-84fd6eb9c0a700329dc0750261d05dd6741791cc.tar.gz |
SERVER-47997: Remove cachePressureThreshold and isCacheUnderPressuref1b99df5
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index 0a3072214e9..9f0349a2f20 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -76,7 +76,6 @@ #include "mongo/db/s/transaction_coordinator_factory.h" #include "mongo/db/service_entry_point_common.h" #include "mongo/db/session_catalog_mongod.h" -#include "mongo/db/snapshot_window_options.h" #include "mongo/db/stats/counters.h" #include "mongo/db/stats/server_read_concern_metrics.h" #include "mongo/db/stats/top.h" @@ -1228,20 +1227,7 @@ void execCommandDatabase(OperationContext* opCtx, throw; } } catch (const DBException& e) { - if (e.code() == ErrorCodes::SnapshotTooOld) { - // SnapshotTooOld errors should never be thrown unless we are using a storage engine - // that supports snapshot read concern. - auto engine = opCtx->getServiceContext()->getStorageEngine(); - invariant(engine && engine->supportsReadConcernSnapshot()); - - // SnapshotTooOld errors indicate that PIT ops are failing to find an available - // snapshot at their specified atClusterTime. Therefore, we'll try to increase the - // snapshot history window that the storage engine maintains in order to increase - // the likelihood of successful future PIT atClusterTime requests. - snapshotWindowParams.snapshotTooOldErrorCount.addAndFetch(1); - } else { - behaviors.handleException(e, opCtx); - } + behaviors.handleException(e, opCtx); // Append the error labels for transient transaction errors. auto response = extraFieldsBuilder.asTempObj(); |