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

add a check for server version to shell and highlight mismatch

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.8
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Fully Compatible
    • Platforms 15 (06/03/16)

      It would be nice to flag if the shell version if different than server (major version) something functionally equivalent to:

      > if( dbv.slice(0,3)!=shv.slice(0,3)) print ("mismatched versions");
      mismatched versions
      > db.version()
      2.4.5
      > version()
      2.5.4
      

      We already print the shell version and that can easily be mistaken by someone for server version.

      Just printing server version would help just by itself...

      MongoDB shell version: 2.5.4
      connecting to: test
      MongoDB server version: 2.4.5
      

            Assignee:
            joanna.cheng@mongodb.com Joanna Cheng
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: