Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23109

Typo in src/mongo/shell/collection.js

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • 3.2.5, 3.3.4
    • Shell
    • Fully Compatible
    • ALL
    • Hide

      db.users.getIndexes()

      2016-03-14T19:55:37.200+0700 E QUERY [thread1] ReferenceError: ret is not defined

      Show
      db.users.getIndexes() 2016-03-14T19:55:37.200+0700 E QUERY [thread1] ReferenceError: ret is not defined
    • Platforms 12 (04/01/16)

    Description

      https://github.com/mongodb/mongo/blob/master/src/mongo/shell/collection.js#L1032

      throw _getErrorWithCode(ret, "listIndexes failed: " + tojson(res));

      should be

      throw _getErrorWithCode(res, "listIndexes failed: " + tojson(res));

      Attachments

        Activity

          People

            waley.chen Waley Chen
            ArtemKo Artem Ko [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: