╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1364 │ │1365 const db_ptr = try allocator.create(DB); │ │1366 errdefer allocator.destroy(db_ptr); │ │1296 - db_ptr.* = try DB.init(.{ .io = io, .file = db_file, .buffer = buffer_ptr }); │ │1367 + // the db is scratch state that gets deleted after iteration, so │ │1368 + // there is nothing worth fsyncing │ │1369 + db_ptr.* = try DB.init(.{ .io = io, .file = db_file, .buffer = buffer_ptr, .fsync = false });│ │1370 │ │1371 const map = try DB.HashMap(.read_write).init(db_ptr.rootCursor()); │ │1372 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/event/Issue.zig│ ╰───────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │219 }, │ │220 } │ │221 │ │222 - try evt.commitAndConsume(repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &[_]evt.EventWithId{.{│ │222 + try evt.consume(repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │223 .id = std.fmt.bytesToHex(id_bytes.*, .lower), │ │224 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │225 .event = .{ .issue = updated }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────╮ │src/event/User.zig│ ╰──────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │278 │ │279 var updated = user; │ │280 updated.enable_ansi = !user.enable_ansi; │ │281 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, repo, evt.events_ref, &[_]evt.EventWithId{.{│ │281 + try evt.consume(.xit, repo_opts, io, allocator, repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │282 .id = std.fmt.bytesToHex(user_id[0..evt.event_id_size].*, .lower), │ │283 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │284 .event = .{ .user = updated }, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────╮ │src/serve_ssh.zig│ ╰─────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │380 │ │381 switch (service) { │ │382 .upload_pack => try repo.uploadPack(io, allocator, &session_reader.interface, &session_writer.interface, .{}), │ │383 - .receive_pack => try repo.receivePack(io, allocator, &session_reader.interface, &session_writer.interface, .{}), │ │383 + .receive_pack => try evt.receivePackAndConsume(repo_opts, io, allocator, repo, &session_reader.interface, &session_writer.interface, .{}),│ │384 } │ │385 │ │386 // flush whatever the pack op buffered into our writer adapter │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │115 // │ │116 │ │117 { │ │118 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │118 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │119 │ │120 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │121 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │153 }; │ │154 │ │155 // commit and consume the new event │ │156 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2);│ │156 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2); │ │157 │ │158 // │ │159 // rebase the branch so it no longer includes the edit event │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │196 // │ │197 │ │198 { │ │199 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │199 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │200 │ │201 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │202 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │255 // │ │256 │ │257 { │ │258 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │258 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │259 │ │260 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │261 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │367 // │ │368 │ │369 { │ │370 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │370 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │371 │ │372 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │373 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │469 // │ │470 │ │471 { │ │472 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │472 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │473 │ │474 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │475 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯