Skip to content

Commit

Permalink
make style check happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sobeston committed Jan 16, 2025
1 parent 2b11471 commit 72d6f69
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/accountsdb/buffer_pool.zig
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ pub const BufferPool = struct {
const did_remove = blk: {
const frame_map, var frame_map_lg = self.frame_map_rw.writeWithLock();
defer frame_map_lg.unlock();
break :blk frame_map.remove(@bitCast(self.frames_metadata.key[evicted].load(.acquire)));
break :blk frame_map.remove(
@bitCast(self.frames_metadata.key[evicted].load(.acquire)),
);
};
if (!did_remove) {
std.debug.panic(
Expand Down Expand Up @@ -561,11 +563,19 @@ pub const FramesMetadata = struct {
errdefer allocator.free(freq);
@memset(freq, 0);

const in_queue = try allocator.alignedAlloc(std.atomic.Value(InQueue), std.mem.page_size, num_frames);
const in_queue = try allocator.alignedAlloc(
std.atomic.Value(InQueue),
std.mem.page_size,
num_frames,
);
errdefer allocator.free(in_queue);
@memset(in_queue, std.atomic.Value(InQueue).init(.none));

const size = try allocator.alignedAlloc(std.atomic.Value(u16), std.mem.page_size, num_frames);
const size = try allocator.alignedAlloc(
std.atomic.Value(u16),
std.mem.page_size,
num_frames,
);
errdefer allocator.free(size);
@memset(size, std.atomic.Value(u16).init(0));

Expand Down

0 comments on commit 72d6f69

Please sign in to comment.