mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 21:22:25 -05:00 
			
		
		
		
	[chore] update github.com/ncruces/go-sqlite3 -> v0.16.3 (#3029)
This commit is contained in:
		
					parent
					
						
							
								e543fbc80e
							
						
					
				
			
			
				commit
				
					
						15e0bf6e5a
					
				
			
		
					 13 changed files with 66 additions and 34 deletions
				
			
		
							
								
								
									
										9
									
								
								vendor/github.com/ncruces/go-sqlite3/vfs/os_bsd.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/ncruces/go-sqlite3/vfs/os_bsd.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -29,5 +29,12 @@ func osReadLock(file *os.File, _ /*start*/, _ /*len*/ int64, _ /*timeout*/ time. | |||
| } | ||||
| 
 | ||||
| func osWriteLock(file *os.File, _ /*start*/, _ /*len*/ int64, _ /*timeout*/ time.Duration) _ErrorCode { | ||||
| 	return osLock(file, unix.LOCK_EX|unix.LOCK_NB, _IOERR_LOCK) | ||||
| 	rc := osLock(file, unix.LOCK_EX|unix.LOCK_NB, _IOERR_LOCK) | ||||
| 	if rc == _BUSY { | ||||
| 		// The documentation states the lock is upgraded by releasing the previous lock, | ||||
| 		// then acquiring the new lock. | ||||
| 		// This is a race, so return BUSY_SNAPSHOT to ensure the transaction is aborted. | ||||
| 		return _BUSY_SNAPSHOT | ||||
| 	} | ||||
| 	return rc | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue