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

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

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

      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 Michael Grundy
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: