mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Fix env
This commit is contained in:
parent
af6a7acf48
commit
340229af85
1 changed files with 4 additions and 0 deletions
4
ha.go
4
ha.go
|
|
@ -215,6 +215,10 @@ func (h *HA) run(rdb *icingadb_connection.RDBWrapper, dbw *icingadb_connection.D
|
|||
"env": h.ourEnv.ID,
|
||||
}).Info("Received environment from Icinga 2")
|
||||
|
||||
h.super.EnvLock.Lock()
|
||||
h.super.EnvId = h.ourEnv.ID
|
||||
h.super.EnvLock.Unlock()
|
||||
|
||||
everySecond := time.NewTicker(time.Second)
|
||||
defer everySecond.Stop()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue