F2FS atomic writes. (#66)

https://sqlite.org/cgi/src/technote/714f6cbbf7
This commit is contained in:
Nuno Cruces
2024-03-21 13:59:47 +00:00
committed by GitHub
parent 36583542e1
commit 617982f947
8 changed files with 75 additions and 6 deletions

View File

@@ -99,8 +99,8 @@ func instantiateSQLite() (sqlt *sqlite, err error) {
}
sqlt.freer = util.ReadUint32(sqlt.mod, uint32(global.Get()))
if err != nil {
return nil, err
if sqlt.freer == 0 {
return nil, util.BadBinaryErr
}
return sqlt, nil
}