Added some log and started testing array manip. Fixed some errors already

This commit is contained in:
2025-01-25 21:15:04 +01:00
parent 4066803ecd
commit baf6cd2284
11 changed files with 112 additions and 57 deletions
+1
View File
@@ -26,6 +26,7 @@ thread_pool: *Pool, // same pool as the ThreadEngine
schema_engine: SchemaEngine = undefined, // This is init after the FileEngine and I attach after. Do I need to init after tho ?
pub fn init(allocator: std.mem.Allocator, path: []const u8, thread_pool: *Pool) ZipponError!Self {
log.debug("FileEngine Initializing with path {s}", .{path});
return Self{
.allocator = allocator,
.path_to_ZipponDB_dir = std.fmt.bufPrint(&path_to_ZipponDB_dir_buffer, "{s}", .{path}) catch return ZipponError.MemoryError,
-1
View File
@@ -148,7 +148,6 @@ fn updateEntitiesOneFile(
dir: std.fs.Dir,
sync_context: *ThreadSyncContext,
) void {
log.debug("{any}\n", .{@TypeOf(writer)});
var data_buffer: [config.BUFFER_SIZE]u8 = undefined;
var fa = std.heap.FixedBufferAllocator.init(&data_buffer);
defer fa.reset();