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

getParameter should know all setParameter params

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.2
    • Component/s: None
    • Labels:
      None

      Description

      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 }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: