RUBY-352 Ensure commands are sent to primary.
This commit is contained in:
parent
9b6589e033
commit
14593954fa
|
@ -515,7 +515,7 @@ module Mongo
|
||||||
|
|
||||||
def checkout_socket_from_connection
|
def checkout_socket_from_connection
|
||||||
@checkin_connection = true
|
@checkin_connection = true
|
||||||
if @read_preference == :primary
|
if @command || @read_preference == :primary
|
||||||
@connection.checkout_writer
|
@connection.checkout_writer
|
||||||
else
|
else
|
||||||
@read_pool = @connection.read_pool
|
@read_pool = @connection.read_pool
|
||||||
|
|
Loading…
Reference in New Issue