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

Don't include unnecessary $v field in oplog entries

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query

      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.

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

              Created:
              Updated:
              Resolved: