mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 09:42:27 -05:00
pull in ncruces/go-sqlite3 v0.20.3 with tetratelabs/wazero v1.8.2 (#3574)
This commit is contained in:
parent
6a8af42647
commit
61f8f1e0e3
41 changed files with 374 additions and 226 deletions
7
vendor/github.com/ncruces/go-sqlite3/vfs/shm_copy.go
generated
vendored
7
vendor/github.com/ncruces/go-sqlite3/vfs/shm_copy.go
generated
vendored
|
|
@ -31,7 +31,10 @@ const (
|
|||
//
|
||||
// https://sqlite.org/walformat.html#the_wal_index_file_format
|
||||
|
||||
func (s *vfsShm) shmAcquire() {
|
||||
func (s *vfsShm) shmAcquire(ptr *_ErrorCode) {
|
||||
if ptr != nil && *ptr != _OK {
|
||||
return
|
||||
}
|
||||
if len(s.ptrs) == 0 || shmUnmodified(s.shadow[0][:], s.shared[0][:]) {
|
||||
return
|
||||
}
|
||||
|
|
@ -69,7 +72,7 @@ func (s *vfsShm) shmRelease() {
|
|||
|
||||
func (s *vfsShm) shmBarrier() {
|
||||
s.Lock()
|
||||
s.shmAcquire()
|
||||
s.shmAcquire(nil)
|
||||
s.shmRelease()
|
||||
s.Unlock()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue