Skip to content

Commit 361c807

Browse files
fix typo pls work
1 parent 729d992 commit 361c807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ export function needsRetryableWriteLabel(
12411241
}
12421242

12431243
// For writeErrors and writeConcernErrors from a pre-4.4 mongos response, do not use the code to determine retryability.
1244-
const isShardedAndPre4_4 = !isSharded && maxWireVersion >= 9;
1244+
const isShardedAndPre4_4 = isSharded && maxWireVersion >= 9;
12451245

12461246
if (error instanceof MongoWriteConcernError && !isShardedAndPre4_4) {
12471247
return RETRYABLE_WRITE_ERROR_CODES.has(error.result?.code ?? error.code ?? 0);

0 commit comments

Comments
 (0)