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

getParameter should know all setParameter params

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.2
    • Affects Version/s: None
    • Component/s: None
    • None

      It seems like getParameter doesn't support retrieving all the tunables that setParameter does. That's just silly.

      parameters = [ "journalCommitInterval", "logLevel", "notablescan", "traceException", "quiet", "syncdelay" ];
      
      for (var i in parameters) { 
          var p=parameters[i];
          var doc = { "getParameter" : 1 }; 
          doc[p]=1;
          print(p);
          printjson( db.adminCommand( doc ) ); 
      }
      

      Here's the output under 2.2.0:

      journalCommitInterval
      { "errmsg" : "no option found to get", "ok" : 0 }
      logLevel
      { "logLevel" : 0, "ok" : 1 }
      notablescan
      { "notablescan" : false, "ok" : 1 }
      traceException
      { "errmsg" : "no option found to get", "ok" : 0 }
      quiet
      { "quiet" : false, "ok" : 1 }
      syncdelay
      { "syncdelay" : 60, "ok" : 1 }
      

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: