diff options
Diffstat (limited to 'src/ninep/events.zig')
| -rw-r--r-- | src/ninep/events.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ninep/events.zig b/src/ninep/events.zig index 9e6df93d..2af86108 100644 --- a/src/ninep/events.zig +++ b/src/ninep/events.zig @@ -154,8 +154,11 @@ pub fn announce(p: *Pardes) void { /// The panes present at boot are the log's first records: something said /// before the first update ends (an init file's notice) waits for them. +/// The log is the session's (`p.fs`, the authority's): a replica client's, +/// joined from a dump, is empty, and its step must not announce (taped +/// reads, Recent's) where the session's, booted long ago, does not. fn bootFirst(p: *Pardes) void { - if (newest(p) == null) announce(p); + if (newest(p) == null and !pardes.tape.replaying()) announce(p); } /// Records `<kind> <serial> <name>`. |
