docs(collection): align SnapshotRecover.priority rustdoc with SnapshotPriority (#10233)

Replica prefers existing replica data, then this peer is synchronized from
other replicas — not from the snapshot. Also fix the "if will" typo.
This commit is contained in:
David Dallakyan
2026-09-03 12:41:02 +02:00
committed by timvisee
parent d9d5a6e6b7
commit 21606bd2dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14213,7 +14213,7 @@
"format": "uri"
},
"priority": {
"description": "Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to `Replica`, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.",
"description": "Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to `Replica`, the current state will be used as a source of truth, and after recovery it will be synchronized from other replicas.",
"default": null,
"anyOf": [
{
@@ -70,7 +70,7 @@ pub struct SnapshotRecover {
/// Defines which data should be used as a source of truth if there are other replicas in the cluster.
/// If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten.
/// If set to `Replica`, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.
/// If set to `Replica`, the current state will be used as a source of truth, and after recovery it will be synchronized from other replicas.
#[serde(default)]
pub priority: Option<SnapshotPriority>,