RUBY-352 Ensure commands are sent to primary.

This commit is contained in:
Kyle Banker 2011-10-26 10:28:06 -04:00
parent 9b6589e033
commit 14593954fa
1 changed files with 1 additions and 1 deletions

View File

@ -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