This commit is contained in:
Adrien Bouvais 2024-11-12 21:57:13 +01:00
parent 5e9c64caf6
commit 13cba58dbc

View File

@ -622,7 +622,7 @@ pub const FileEngine = struct {
} }
// Wait for all threads to complete // Wait for all threads to complete
while (sync_context.isComplete()) { while (!sync_context.isComplete()) {
std.time.sleep(10_000_000); // Check every 10ms std.time.sleep(10_000_000); // Check every 10ms
} }
@ -701,22 +701,21 @@ pub const FileEngine = struct {
return; return;
}; };
// FIXME: This get an error and I have no idea why writer.writeByte('{') catch |err| {
//writer.writeByte('{') catch |err| { sync_context.logError("Error initializing DataWriter", err);
// sync_context.logError("Error initializing DataWriter", err); zid.deleteFile(new_path, dir) catch {};
// zid.deleteFile(new_path, dir) catch {}; return;
// return; };
//}; writer.print("\"{s}\"", .{UUID.format_bytes(row[0].UUID)}) catch |err| {
//writer.print("\"{s}\"", .{UUID.format_bytes(row[0].UUID)}) catch |err| { sync_context.logError("Error initializing DataWriter", err);
// sync_context.logError("Error initializing DataWriter", err); zid.deleteFile(new_path, dir) catch {};
// zid.deleteFile(new_path, dir) catch {}; return;
// return; };
//}; writer.writeAll("},") catch |err| {
//writer.writeAll("},") catch |err| { sync_context.logError("Error initializing DataWriter", err);
// sync_context.logError("Error initializing DataWriter", err); zid.deleteFile(new_path, dir) catch {};
// zid.deleteFile(new_path, dir) catch {}; return;
// return; };
//};
if (sync_context.incrementAndCheckStructLimit()) break; if (sync_context.incrementAndCheckStructLimit()) break;
} else { } else {
new_writer.write(row) catch |err| { new_writer.write(row) catch |err| {