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

Do not generate "hidden" field in oplog if collMod "hidden" parameter is a no-op

    • Fully Compatible
    • ALL
    • v4.4
    • Query 2020-05-18
    • 38

      collMod creates oplog entries, even when it does nothing. In FCV 4.2, it can create this oplog entry:

        {dbName: 'db10',commandObj: {collMod: 'coll12',index: {name: 'idx_f',hidden: false}}},
      

      It's not rejected since it's "hidden: false", but also 4.2 is unhappy due to this logic that expects an "expireAfterSeconds" field.

            Assignee:
            ruoxin.xu@mongodb.com Ruoxin Xu
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: