# HG changeset patch # User Kim Alvefur # Date 1689955402 -7200 # Node ID 6a11d92ae436646d0beecb96098f60341a8cfdfd # Parent 26c30844cac63468d17ddef0dd03fe144245cf8f util.datamanager: Disable block alignment Until we have more test coverage. Somehow the index becomes incorrect after inserting padding, unclear why. diff -r 26c30844cac6 -r 6a11d92ae436 util/datamanager.lua --- a/util/datamanager.lua Fri Jul 21 17:23:00 2023 +0200 +++ b/util/datamanager.lua Fri Jul 21 18:03:22 2023 +0200 @@ -245,12 +245,14 @@ end local pos = f:seek("end"); + --[[ TODO needs tests if (blocksize-(pos%blocksize)) < (#data%blocksize) then -- pad to blocksize with newlines so that the next item is both on a new -- block and a new line atomic_append(f, ("\n"):rep(blocksize-(pos%blocksize))); pos = f:seek("end"); end + --]] local ok, msg = atomic_append(f, data);