diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index 60b593f..086ac1f 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -543,7 +543,7 @@ module Mongo else raise Mongo::OperationFailure, "Failure to continue iterating " + "cursor because the the replica set member persisting this " + - " cursor cannot be found." + "cursor at #{@read_pool.host_string} cannot be found." end end diff --git a/lib/mongo/util/pool.rb b/lib/mongo/util/pool.rb index c70ab31..ca5afac 100644 --- a/lib/mongo/util/pool.rb +++ b/lib/mongo/util/pool.rb @@ -65,7 +65,6 @@ module Mongo warn "IOError when attempting to close socket connected to #{@host}:#{@port}: #{ex.inspect}" end end - @host = @port = nil @sockets.clear @pids.clear @checked_out.clear