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

single-character verbose configuration option in file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 2.4.10, 2.6.3
    • Component/s: Admin
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide
      $ cat mongod-v.conf
      v = true
      
      $ cat mongod-vv.conf
      vv = true
      
      $ mongodb-osx-x86_64-2.6.3/bin/mongod --config mongod-v.conf
      Error parsing INI config file: unknown option v
      [...]
      
      # works
      $ mongodb-osx-x86_64-2.6.3/bin/mongod --config mongod-vv.conf
      2014-06-20T23:21:49.061-0400 [DataFileSync] BackgroundJob starting: DataFileSync
      [...]
      
      $ mongodb-osx-x86_64-2.4.0/bin/mongod --config mongod-v.conf
      error command line: unknown option v
      use --help for help
      
      $ mongodb-osx-x86_64-2.6.3/bin/mongod -v
      2014-06-20T23:29:07.213-0400 [DataFileSync] BackgroundJob starting: DataFileSync
      [...]
      
      Show
      $ cat mongod-v.conf v = true $ cat mongod-vv.conf vv = true $ mongodb-osx-x86_64-2.6.3/bin/mongod --config mongod-v.conf Error parsing INI config file: unknown option v [...] # works $ mongodb-osx-x86_64-2.6.3/bin/mongod --config mongod-vv.conf 2014-06-20T23:21:49.061-0400 [DataFileSync] BackgroundJob starting: DataFileSync [...] $ mongodb-osx-x86_64-2.4.0/bin/mongod --config mongod-v.conf error command line: unknown option v use --help for help $ mongodb-osx-x86_64-2.6.3/bin/mongod -v 2014-06-20T23:29:07.213-0400 [DataFileSync] BackgroundJob starting: DataFileSync [...]
    • Platforms 12 (04/01/16)

      2.6 Configuration Options cite compatibility with 2.4 options including the verbose family of options.

      Docs refer to v = true in the configuration file, however this doesn't seem to work in 2.6 or 2.4.

      Steps to reproduce included. Works fine as command-line argument.

      Documentation states "[mongod’s command line arguments or using a configuration file] are functionally equivalent".

      Previously: SERVER-11471.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            daniel.medina Daniel Medina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: