Refactoring day1
This commit is contained in:
7
node_modules/mongodb/lib/error.js
generated
vendored
7
node_modules/mongodb/lib/error.js
generated
vendored
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user