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

collMod should support writeConcern

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • None
    • None
    • Admin
    • ALL
    • Hide

      (function() {
          'use strict';
          assert.commandWorked(db.collmod.createIndex({x: 1}, {expireAfterSeconds: 3}));
          assert.commandWorked(
              db.runCommand({collMod: "collmod", index: {keyPattern: {x:1}, expireAfterSeconds: 6}, writeConcern: {w: 4, wtimeout: 100}}));
      })()
      

      Show
      ( function () { 'use strict' ; assert.commandWorked(db.collmod.createIndex({x: 1}, {expireAfterSeconds: 3})); assert.commandWorked( db.runCommand({collMod: "collmod" , index: {keyPattern: {x:1}, expireAfterSeconds: 6}, writeConcern: {w: 4, wtimeout: 100}})); })()
    • Storage NYC 2018-07-02

    Description

      Currently trying to specify a writeConcern with collMod results in:

      2016-07-21T14:06:42.825-0400 E QUERY    [thread1] Error: command failed: {
      	"ok" : 0,
      	"errmsg" : "unknown option to collMod: writeConcern",
      	"code" : 72
      }
      

      Attachments

        Issue Links

          Activity

            People

              ben.judd Ben Judd
              geert.bosch@mongodb.com Geert Bosch
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: