Method: Mongo::Session#pinned_server

Defined in:
lib/mongo/session.rb

#pinned_serverServer | nil (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The server (which should be a mongos) that this session is pinned to, if any.

Returns:

  • (Server | nil)

    The server (which should be a mongos) that this session is pinned to, if any.

Since:

  • 2.5.0



280
281
282
# File 'lib/mongo/session.rb', line 280

def pinned_server
  @pinned_server
end