Method: Mongo::Session#recovery_token

Defined in:
lib/mongo/session.rb

#recovery_tokenBSON::Document | nil

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 Recovery token for the sharded transaction being executed on this session, if any.

Returns:

  • (BSON::Document | nil)

    Recovery token for the sharded transaction being executed on this session, if any.

Since:

  • 2.5.0



290
291
292
# File 'lib/mongo/session.rb', line 290

def recovery_token
  @recovery_token
end