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

ensureIndex in compatibility mode fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0-rc2
    • Component/s: Shell
    • Labels:
      None
    • Operating System:
      ALL

      Description

      The shell currently does no downconversion of ensureIndex when connected to a legacy host or when the shell is in "compatibility" mode. This prevents scripts written for the 2.6 shell from working properly against older hosts and prevents our regression tests in jsCore from covering the legacy index write path.

      Fix is to emulate a command response by creating the index via a safe write.

        Attachments

          Activity

            People

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            greg_10gen Greg Studer
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: