Skip to content

Commit

Permalink
PERL-935 removing redundant supports_retry_writes sub
Browse files Browse the repository at this point in the history
  • Loading branch information
piratefinn authored and xdg committed Sep 27, 2018
1 parent 3c06679 commit 470ed6c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/MongoDB/_Topology.pm
Original file line number Diff line number Diff line change
Expand Up @@ -647,21 +647,6 @@ sub _supports_sessions {
return defined $self->logical_session_timeout_minutes;
}

# Used for bulkWrite for shortcutting to original execute command
sub _supports_retry_writes {
my ( $self ) = @_;

# retryWrites arent supported in standalone servers
return if $self->type eq 'Single';

# retryWrites require a wire version of at least six
return if $self->wire_version_ceil < 6;

# must have lstm present
return 1 if defined $self->logical_session_timeout_minutes;
return;
}

sub _supports_transactions {
my ( $self ) = @_;

Expand Down

0 comments on commit 470ed6c

Please sign in to comment.