Update 'safe multimerge'

Sergey Chernov 2023-06-21 10:56:12 +00:00
parent fefc82656c
commit 4b12c6b78b

@ -12,27 +12,27 @@ sequenceDiagram
participant Server
Note over Server, Alice: initial data: Hello world
par conflicting update 1
Alice->>+Server: data: Hello, world!
Server-->>-Alice: accepted
Bob->>+Server: data: Hello, cruel world
Server -->> Bob: merge request
Carol->>+Server: data: Bye, world
Server -->> Carol: merge request
Alice ->>+Server: data: Hello, world!
Server -->>- Alice: accepted
Bob ->>+ Server: data: Hello, cruel world
Server -->>- Bob: merge request
Carol ->>+ Server: data: Bye, world
Server -->>- Carol: merge request
end
note left of Server: now "Hello, world!"
par conflicting update 2
Bob->>+Server: data: Hello, cruel world!
Server -->> Bob: accepted
Carol->>+Server: data: Bye, world!
Server -->> Carol: merge request
Server -->>- Bob: accepted
Carol->>+ Server: data: Bye, world!
Server -->>- Carol: merge request
Server --) Alice: update data
end
note left of Server: now Hello, cruel world!
par update 3
Carol->>+Server: data: Bye, cruel world!
Server -->> Carol: accepted
Carol->>+ Server: data: Bye, cruel world!
Server -->>- Carol: accepted
Server --) Alice: update data
Server --) Bob: update data
end