Commit 2705a34
committed
docs(gui): record why the pause path is not cross-gated with the pin writes
Pausing the pinned account releases the pin too, so the obvious reading of the
switch/order cross-gate is that pause was missed. It was not: that edge is
conditional on the pin still naming the paused account, so it is a no-op whenever a
concurrent write has already moved the pin elsewhere, and the client agrees with the
server whichever response lands last. The gated pair state a pin outright, which is
what makes response order decide the outcome.
Comment only -- worth having at the line, because the safe-looking fix (share
pauseMutationRef) would make a pause and an order change on two unrelated accounts
reject each other, and because copying the unconditional pattern here would
introduce the very race the gate exists to prevent.1 parent aa9a338 commit 2705a34
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
304 | 312 | | |
305 | 313 | | |
306 | 314 | | |
| |||
0 commit comments