Refactoring day1

This commit is contained in:
2020-08-20 20:27:14 +02:00
parent 6aceefeb2f
commit b907489a75
481 changed files with 5321 additions and 5616 deletions

7
node_modules/mongodb/lib/error.js generated vendored
View File

@@ -20,8 +20,7 @@ const GET_MORE_RESUMABLE_CODES = new Set([
150, // StaleEpoch
13388, // StaleConfig
234, // RetryChangeStream
133, // FailedToSatisfyReadPreference
43 // CursorNotFound
133 // FailedToSatisfyReadPreference
]);
function isResumableError(error, wireVersion) {
@@ -30,10 +29,6 @@ function isResumableError(error, wireVersion) {
}
if (wireVersion >= 9) {
// DRIVERS-1308: For 4.4 drivers running against 4.4 servers, drivers will add a special case to treat the CursorNotFound error code as resumable
if (error.code === 43) {
return true;
}
return error.hasErrorLabel('ResumableChangeStreamError');
}