Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 94e827b

Browse files
committed
PERL-935 removing redundant supports_retry_writes sub
1 parent 86efe3d commit 94e827b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/MongoDB/_Topology.pm

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -647,21 +647,6 @@ sub _supports_sessions {
647647
return defined $self->logical_session_timeout_minutes;
648648
}
649649

650-
# Used for bulkWrite for shortcutting to original execute command
651-
sub _supports_retry_writes {
652-
my ( $self ) = @_;
653-
654-
# retryWrites arent supported in standalone servers
655-
return if $self->type eq 'Single';
656-
657-
# retryWrites require a wire version of at least six
658-
return if $self->wire_version_ceil < 6;
659-
660-
# must have lstm present
661-
return 1 if defined $self->logical_session_timeout_minutes;
662-
return;
663-
}
664-
665650
sub _supports_transactions {
666651
my ( $self ) = @_;
667652

0 commit comments

Comments
 (0)