all: add ignored_enabled field to config modifier
Some checks failed
build / test (macOS-latest) (push) Has been cancelled
build / test (ubuntu-latest) (push) Has been cancelled
build / test (windows-latest) (push) Has been cancelled
build / build-release (push) Has been cancelled
build / notify (push) Has been cancelled
lint / go-lint (push) Has been cancelled
lint / eslint (push) Has been cancelled
lint / notify (push) Has been cancelled

This commit is contained in:
f.setrakov
2025-12-24 18:15:14 +03:00
parent 565666fb73
commit e17c2b3829
2 changed files with 3 additions and 0 deletions

View File

@@ -877,6 +877,7 @@ func (c *configuration) write(
config.Stats.Interval = timeutil.Duration(statsConf.Limit)
config.Stats.Enabled = statsConf.Enabled
config.Stats.Ignored = statsConf.Ignored.Values()
config.Stats.IgnoredEnabled = statsConf.IgnoredEnabled
}
if globalContext.queryLog != nil {
@@ -888,6 +889,7 @@ func (c *configuration) write(
config.QueryLog.Interval = timeutil.Duration(dc.RotationIvl)
config.QueryLog.MemSize = dc.MemSize
config.QueryLog.Ignored = dc.Ignored.Values()
config.QueryLog.IgnoredEnabled = dc.IgnoredEnabled
}
if globalContext.filters != nil {

View File

@@ -312,6 +312,7 @@ func (s *StatsCtx) WriteDiskConfig(dc *Config) {
dc.Ignored = s.ignored
dc.Limit = s.limit
dc.Enabled = s.enabled
dc.IgnoredEnabled = s.ignoredEnabled
}
// TopClientsIP implements the [Interface] interface for *StatsCtx.