mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:22:25 -05:00 
			
		
		
		
	[chore] Update ncruces/go-sqlite3 to 0.21.3 (#3629)
This includes some additional locking fixes for the BSDs.
This commit is contained in:
		
					parent
					
						
							
								f78002f915
							
						
					
				
			
			
				commit
				
					
						9ae0c7b363
					
				
			
		
					 13 changed files with 111 additions and 101 deletions
				
			
		
							
								
								
									
										10
									
								
								vendor/github.com/ncruces/go-sqlite3/vfs/shm_ofd.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/ncruces/go-sqlite3/vfs/shm_ofd.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -110,7 +110,12 @@ func (s *vfsShm) shmMap(ctx context.Context, mod api.Module, id, size int32, ext | |||
| 
 | ||||
| func (s *vfsShm) shmLock(offset, n int32, flags _ShmFlag) _ErrorCode { | ||||
| 	// Argument check. | ||||
| 	if n <= 0 || offset < 0 || offset+n > _SHM_NLOCK { | ||||
| 	switch { | ||||
| 	case n <= 0: | ||||
| 		panic(util.AssertErr()) | ||||
| 	case offset < 0 || offset+n > _SHM_NLOCK: | ||||
| 		panic(util.AssertErr()) | ||||
| 	case n != 1 && flags&_SHM_EXCLUSIVE == 0: | ||||
| 		panic(util.AssertErr()) | ||||
| 	} | ||||
| 	switch flags { | ||||
|  | @ -123,9 +128,6 @@ func (s *vfsShm) shmLock(offset, n int32, flags _ShmFlag) _ErrorCode { | |||
| 	default: | ||||
| 		panic(util.AssertErr()) | ||||
| 	} | ||||
| 	if n != 1 && flags&_SHM_EXCLUSIVE == 0 { | ||||
| 		panic(util.AssertErr()) | ||||
| 	} | ||||
| 
 | ||||
| 	var timeout time.Duration | ||||
| 	if s.blocking { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue