lib/mongo/cluster/reapers/cursor_reaper.rb
# Register a cursor id as active.
#
# @example Register a cursor as active.
#   cursor_reaper.register_cursor(id)
#
# @param [ Integer ] id The id of the cursor to register as active.
#
# @api private
#
# @since 2.3.0
Register a cursor id as active.
Register a cursor id as active .
def register_cursor(id)
        if id.nil?
          raise ArgumentError, 'register_cursor called with nil cursor_id'
        end
        if id == 0
          raise ArgumentError, 'register_cursor called with cursor_id=0'
        end
        @mutex.synchronize do
          @active_cursor_ids << id
        end
      end
def register_cursor ( id ) if id . nil? raise ArgumentError , 'register_cursor called with nil cursor_id' end if id == 0 raise ArgumentError , 'register_cursor called with cursor_id=0' end @mutex . synchronize do @active_cursor_ids << id end end
Register a cursor id as active.
Register a cursor id as active .
id
<not_specific>
<not_specific>
id The id of the cursor to register as active.
id The id of the cursor to register as active .
example
Register a cursor as active. cursor_reaper.register_cursor(id)
Register a cursor as active . cursor_reaper . register_cursor ( id )
api
None
since
None