summaryrefslogtreecommitdiff
path: root/core/Db.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 11:42:48 -0300
committerGabriel Schneider <[email protected]>2026-11-19 11:42:48 -0300
commit71d8744b41dec56d835e30f531b96fede5d610a1 (patch)
tree31e2a06fdcfd467d12454cde8be5a477765701b5 /core/Db.zig
parenteae5736ad923731135dd35b3783c90a3358bd0fa (diff)
parent4569aefd55d04f434f2e2ed5e6e4a511a414cdc7 (diff)
downloadpardes-71d8744b41dec56d835e30f531b96fede5d610a1.tar.gz
pardes-71d8744b41dec56d835e30f531b96fede5d610a1.zip
integration: the one client loop that the soak runs, with the tape as the handle a step is given: pardes-runners-b (10b: runtime/client.zig run by the terminal's client, the window's and the soak; a client's clipboard and links its own frontend's; an input sent before it is applied) and pardes-handle-1 (the handle's steps 0 to 2: p.tape, the directory listing and the file system read through the tape they are handed), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Db.zig')
-rw-r--r--core/Db.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Db.zig b/core/Db.zig
index e8d606ec..cbeee5fb 100644
--- a/core/Db.zig
+++ b/core/Db.zig
@@ -89,9 +89,9 @@ pub fn deinit(db: *Db) void {
/// The state file's path for the DumpDir setting `dir_setting`, made in
/// `buf`; null with no home to keep it in.
-pub fn statePath(buf: []u8, dir_setting: []const u8) ?[]const u8 {
+pub fn statePath(tape: *pardes.tape.Tape, buf: []u8, dir_setting: []const u8) ?[]const u8 {
var dir_buf: [4096]u8 = undefined;
- const dir = pardes.dump.directory(&dir_buf, dir_setting) orelse return null;
+ const dir = pardes.dump.directory(tape, &dir_buf, dir_setting) orelse return null;
return std.fmt.bufPrint(buf, "{s}/" ++ file_name, .{dir}) catch null;
}
@@ -1126,7 +1126,7 @@ fn opened(db: *Db, p: *Pardes) ?*Open {
.off => return null,
.disk => {
var buf: [4200]u8 = undefined;
- const path = statePath(&buf, p.settings.dump_dir.get()) orelse return null;
+ const path = statePath(p.tape, &buf, p.settings.dump_dir.get()) orelse return null;
if (db.open) |o| {
// The same file still: another session's compaction renames
// a new one over it, which this one then opens.