diff options
author | 2024-09-14 16:36:25 +0200 | |
---|---|---|
committer | 2024-09-14 16:36:25 +0200 | |
commit | 4fa0d412023ffdefc4ba63eecccd4b74e712ff7d (patch) | |
tree | 02ad2eb48c195eb52e22e6152909f45c7cae58f6 /vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go | |
parent | [feature/frontend] Add dark version of brutalist theme (#3294) (diff) | |
download | gotosocial-4fa0d412023ffdefc4ba63eecccd4b74e712ff7d.tar.xz |
[chore] Update go-sqlite3 to 0.18.3 (#3295)
* [chore] Update go-sqlite3 to 0.18.3
* [chore] Fix getting the sqlite3.Conn
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go')
-rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go b/vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go index 983f28560..eb606bf88 100644 --- a/vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go +++ b/vendor/github.com/ncruces/go-sqlite3/vfs/vfs.go @@ -243,6 +243,15 @@ func vfsFileControl(ctx context.Context, mod api.Module, pFile uint32, op _Fcntl return _OK } + case _FCNTL_LOCK_TIMEOUT: + if file, ok := file.(FileSharedMemory); ok { + if iface, ok := file.SharedMemory().(interface{ shmEnableBlocking(bool) }); ok { + if i := util.ReadUint32(mod, pArg); i == 0 || i == 1 { + iface.shmEnableBlocking(i != 0) + } + } + } + case _FCNTL_PERSIST_WAL: if file, ok := file.(FilePersistentWAL); ok { if i := util.ReadUint32(mod, pArg); int32(i) >= 0 { @@ -347,7 +356,7 @@ func vfsFileControl(ctx context.Context, mod api.Module, pFile uint32, op _Fcntl out = err.Error() } if out != "" { - fn := mod.ExportedFunction("malloc") + fn := mod.ExportedFunction("sqlite3_malloc64") stack := [...]uint64{uint64(len(out) + 1)} if err := fn.CallWithStack(ctx, stack[:]); err != nil { panic(err) |