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

Don't include unnecessary $v field in oplog entries

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • Query

    Description

      UpdateDriver::update() generates a "$v" field to indicate what version of the update language was used to apply the logged update, which is necessary for heterogeneous replica sets that may include nodes supporting multiple versions of the update language.

      Any replica set that cannot include nodes with binVersion <= 3.6, however, can safely elide this field. Newer mongod versions will always apply updates with "kUpdateNode" semantics and will always assume "kUpdateNode" semantics from updates in the oplog.

      Eliding the "$v" field will save some space in the oplog.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: