Repository navigation
Commit 04c4314
committed
fix(server): access list keeps changes made while its stream opens
subscribeAuthAccess read its snapshot before subscribing to the pairing
link and session change streams. Those streams subscribe to non-replaying
PubSubs only when consumed, so a link created or removed, or a session
revoked, while the snapshot loaded never reached the client.
Subscribe to each store into a buffer before reading the snapshot, as the
server lifecycle stream already does. Changes are idempotent upserts and
removals, so one that is also in the snapshot is safe to replay.
Fixes #35623
AI-assisted; verified with the tests and tools listed above.1 parent 8549556 commit 04c4314
2 files changed
Lines changed: 31 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1170 | 1169 | | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1175 | 1174 | | |
1176 | 1175 | | |
1177 | 1176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3424 | 3424 | | |
3425 | 3425 | | |
3426 | 3426 | | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
3427 | 3443 | | |
3428 | 3444 | | |
3429 | | - | |
3430 | | - | |
3431 | | - | |
3432 | 3445 | | |
3433 | | - | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
3434 | 3449 | | |
3435 | 3450 | | |
3436 | 3451 | | |
| |||
0 commit comments