mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	fix MSSQL bug on org (#3405)
This commit is contained in:
		
							
								
								
									
										8
									
								
								vendor/github.com/go-xorm/xorm/engine_maxlife.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/go-xorm/xorm/engine_maxlife.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -12,3 +12,11 @@ import "time" | ||||
| func (engine *Engine) SetConnMaxLifetime(d time.Duration) { | ||||
| 	engine.db.SetConnMaxLifetime(d) | ||||
| } | ||||
|  | ||||
| // SetConnMaxLifetime sets the maximum amount of time a connection may be reused. | ||||
| func (eg *EngineGroup) SetConnMaxLifetime(d time.Duration) { | ||||
| 	eg.Engine.SetConnMaxLifetime(d) | ||||
| 	for i := 0; i < len(eg.slaves); i++ { | ||||
| 		eg.slaves[i].SetConnMaxLifetime(d) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user