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

Fix warning message

    XMLWordPrintable

    Details

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

      Description

      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
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: