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

XMLWordPrintableJSON

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

      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
              Reporter:
              Judah Schvimer
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: