diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 13:19:36 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 13:52:38 -0300 |
| commit | ce92a8c3da84c0bc4f5f2b56acf6e09fa42990f4 (patch) | |
| tree | e5e6a49724b7f41b088810550e9c55bf93fabdab /core/Core.zig | |
| parent | 08331643f8c8c2ebcc317b8690c57b5cbb18866e (diff) | |
| download | pardes-ce92a8c3da84c0bc4f5f2b56acf6e09fa42990f4.tar.gz pardes-ce92a8c3da84c0bc4f5f2b56acf6e09fa42990f4.zip | |
join: a join refused for want of a view reloads nothing: openViewInner reloaded every written terminal on every side before Views.open said no (core/Core.zig), a step of a megabyte's snapshot a terminal for nothing a session refuses 550-630 times a soak run; the view now taken first, the reloads after; FIRST the test (core/replica.zig, the earlier one turned round: every view taken, a key of the client's on top, a fifth client refused, the pump's unit, the key confirmed, more output: no reload on any side, the client the session's): on the base expected 2, found 3 (the refused join reloaded); with the change shell-test -Dtest-filter='bytes: a join' 13/13
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Core.zig')
| -rw-r--r-- | core/Core.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Core.zig b/core/Core.zig index 7ebcc020..6de4f21e 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -1174,9 +1174,11 @@ fn openViewInner(p: *Pardes) ?View.Id { // tape does it here: a join dumps the session next, and a core // loaded from a dump has no queue (Replica.initDump). p.settle(); + // A join refused (every view taken) reloads nothing. + const k = Views.open(p) orelse return null; pardes.panes.reloadTerminals(p); p.needs_frame = true; - return .at(Views.open(p) orelse return null); + return .at(k); } /// The client of view `k` gone: its view goes, the others stay. The |
