|
The voting will be done through a new internal command executed against the primary, VoteRestoreCommand, similar to this. The primary will record the votes in the config.system.restore collection.
Command parameters:
- restoreId: <UUID>
- from: <hostAndPort>
- vote: <string>, "commit" or "abort"
- reason: <optional<string>>
If a node votes to abort, the primary will need to coordinate the abort across the replica set.
If all data-bearing nodes voted to commit, the primary will need to coordinate the commit across the replica set.
|