This commit is contained in:
voidlizard 2025-08-23 22:34:51 +03:00
parent 689ca15b47
commit e4a7e56c7f
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ ncqStorageOpen fp upd = do
let ncqFsync = 16 * megabytes
let ncqWriteQLen = 1024 * 4
let ncqMinLog = 512 * megabytes
let ncqMaxLog = 32 * gigabytes
let ncqMaxLog = 4 * gigabytes
let ncqWriteBlock = max 256 $ ncqWriteQLen `div` 2
let ncqMaxCachedIndex = 64
let ncqMaxCachedData = 64

View File

@ -206,9 +206,9 @@ ncqIndexCompactStep me@NCQStorage{..} = flip runContT pure $ callCC \exit -> do
debug $ "state update" <+> pretty a <+> pretty b <+> "=>" <+> pretty fki
ncqStateUpdate me do
ncqStateAddIndexFile ts fki
ncqStateDelIndexFile (coerce a)
ncqStateDelIndexFile (coerce b)
ncqStateAddIndexFile ts fki
pure True