forked from External/ergo
make MaxLineLen configurable
This commit is contained in:
parent
297f2af827
commit
7c5a8f2013
7 changed files with 30 additions and 5 deletions
|
|
@ -554,6 +554,7 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
server.nameCasefolded = config.Server.nameCasefolded
|
||||
globalCasemappingSetting = config.Server.Casemapping
|
||||
globalUtf8EnforcementSetting = config.Server.EnforceUtf8
|
||||
MaxLineLen = config.Server.MaxLineLen
|
||||
} else {
|
||||
// enforce configs that can't be changed after launch:
|
||||
if server.name != config.Server.Name {
|
||||
|
|
@ -577,6 +578,8 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
return fmt.Errorf("Cannot change override-services-hostname after launching the server, rehash aborted")
|
||||
} else if !oldConfig.Datastore.MySQL.Enabled && config.Datastore.MySQL.Enabled {
|
||||
return fmt.Errorf("Cannot enable MySQL after launching the server, rehash aborted")
|
||||
} else if oldConfig.Server.MaxLineLen != config.Server.MaxLineLen {
|
||||
return fmt.Errorf("Cannot change max-line-len after launching the server, rehash aborted")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue