Unused argument in MasterSlaveConnection._send_message.
This commit is contained in:
parent
4a085f1d33
commit
967a243469
@ -217,12 +217,9 @@ class MasterSlaveConnection(BaseObject):
|
||||
"""
|
||||
self.__master._ensure_connected(sync)
|
||||
|
||||
# _connection_to_use is a hack that we need to include to make sure
|
||||
# that killcursor operations can be sent to the same instance on which
|
||||
# the cursor actually resides...
|
||||
def _send_message(self, message,
|
||||
with_last_error=False,
|
||||
command=False, _connection_to_use=None):
|
||||
command=False):
|
||||
"""Say something to Mongo.
|
||||
|
||||
Sends a message on the Master connection. This is used for inserts,
|
||||
@ -236,11 +233,8 @@ class MasterSlaveConnection(BaseObject):
|
||||
- `data`: data to send
|
||||
- `safe`: perform a getLastError after sending the message
|
||||
"""
|
||||
if _connection_to_use is None or _connection_to_use == -1:
|
||||
return self.__master._send_message(message,
|
||||
with_last_error, command)
|
||||
return self.__slaves[_connection_to_use]._send_message(
|
||||
message, with_last_error, command, check_primary=False)
|
||||
return self.__master._send_message(message,
|
||||
with_last_error, command)
|
||||
|
||||
# _connection_to_use is a hack that we need to include to make sure
|
||||
# that getmore operations can be sent to the same instance on which
|
||||
|
||||
Loading…
Reference in New Issue
Block a user