Fix the printing of JS objects in read concern passthrough test code

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • TIG C (11/20/15)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This code in jstests/libs/override_methods/set_majority_read_and_write_concerns.js should use tojson() for the objects in the jsTestLog calls:

              if (forceWriteConcern) {
                  if (obj.hasOwnProperty("writeConcern")) {
                      jsTestLog("Warning: overriding existing writeConcern of: " +
                                 obj.writeConcern);
                  }
                  obj.writeConcern = defaultWriteConcern;
      
              } else if (forceReadConcern) {
                  if (obj.hasOwnProperty("readConcern")) {
                      jsTestLog("Warning: overriding existing readConcern of: " +
                                 obj.readConcern);
                  }
                  obj.readConcern = {level: "majority"};
              }
      

              Assignee:
              Michael Grundy (Inactive)
              Reporter:
              Kamran K. (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: