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

Allow setting destined recipient in oplog entries

    • Fully Compatible
    • Sharding 2020-08-10

      The "reshardDest" field should be added to the DurableReplOperation struct.

      {
          op: 'i' | 'u' | 'd',
          ns: "<database>.<collection>", ui: <existingUUID>,
          reshardDest: "<recipientShardId>",
          o: { ... }, ...
      }
      

      And the destined recipient should be added as a parameter to OplogEntry::OplogEntry() and makeOplogEntryDoc(). Consider using boost::optional<ShardId> here and the shard_id type in oplog_entry.idl.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: