summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fs.zig b/src/fs.zig
index 9eb3fd0f..4a243b10 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -1631,6 +1631,11 @@ pub const Namespace = struct {
/// append to `body`, an insert at `data`'s address), held and put in
/// as one edit when anything else comes (ninep/pane.zig flushBatch): a
/// 10 MB write in 8 KB pieces is one copy and one undo step, not 1280.
+ /// The text of /pager opens closed before a read put it in, each with
+ /// its +Pager's serial, for the editor's step to put in (ctl.fillPager):
+ /// a close through a mount may not wait for the editor to be quiet,
+ /// as 9ns answers nothing else on that mount while a clunk is out.
+ pages: std.ArrayList(struct { serial: u32, bytes: std.ArrayList(u8) }) = .empty,
batch: struct {
serial: u32 = 0,
node: u64 = 0,
@@ -1678,6 +1683,8 @@ pub const Namespace = struct {
for (st.os_paths.items) |entry| gpa.free(entry.path);
st.os_paths.deinit(gpa);
for (&st.opens) |*o| o.deinit(gpa);
+ for (st.pages.items) |*page| page.bytes.deinit(gpa);
+ st.pages.deinit(gpa);
st.log.deinit(gpa);
st.out.deinit(gpa);
}