summaryrefslogtreecommitdiff
path: root/core/Db.zig
diff options
context:
space:
mode:
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.