Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1240

Fix warning message

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.0
    • Affects Version/s: 2.4.3
    • Component/s: Public API
    • None
    • Environment:
      ruby: 2.4.1p111
      os: Windows 7
    • Minor Change

      When i try to iterate over collection's indexes, i got an warning message

      in `limited?': Mongo::Cursor#limit at C:/Work/Progs/Ruby24-x64/lib/ruby/2.4.0/forwardable.rb:157 forwarding to private method Mongo::Index::View#limit 

      Example

      require 'rubygems'
      require 'mongo'
      
      Mongo::Logger.logger.level = ::Logger::INFO
      
      @sourceMongo= Mongo::Client.new(['10.34.0.4'], database: :some_db)
      
      @sourceCollection= @sourceMongo[:some_coll]
      
      @indexes= @sourceCollection.indexes
      
      @indexes.each do |index|
        puts index
      end
      

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            kabalo NYarosh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: