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

Typo in src/mongo/shell/collection.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.5, 3.3.4
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      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
    • Sprint:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: