Skip to content

Commit 78dd503

Browse files
committed
minor fix
1 parent 8e02b4e commit 78dd503

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/mongo/cursor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def checkout_socket_from_read_pool
543543
else
544544
raise Mongo::OperationFailure, "Failure to continue iterating " +
545545
"cursor because the the replica set member persisting this " +
546-
" cursor cannot be found."
546+
"cursor at #{@read_pool.host_string} cannot be found."
547547
end
548548
end
549549

lib/mongo/util/pool.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def close
6565
warn "IOError when attempting to close socket connected to #{@host}:#{@port}: #{ex.inspect}"
6666
end
6767
end
68-
@host = @port = nil
6968
@sockets.clear
7069
@pids.clear
7170
@checked_out.clear

0 commit comments

Comments
 (0)