]> granicus.if.org Git - icinga2/commit
DB IDO: Do not deactivate objects during application reload/restart 7157/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 3 May 2019 10:44:29 +0000 (12:44 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 3 May 2019 13:40:48 +0000 (15:40 +0200)
commit78e24c53f1564269f744de5efe50cb099cadbdde
tree9f206be7a5d81360bc89c2f71e8e958d77cf8f01
parent759b090f8153ec8c0590cb7ff8efe5f1f8d613ad
DB IDO: Do not deactivate objects during application reload/restart

This follows the same principle as with the shutdown handler,
and was introduced with the changed reload handling with 2.9.
Previously IsShuttingDown() was sufficient which got set at one
location.

SigUsr2 as handler introduced a new location where m_ShuttingDown
is not necessarily set yet. Since this handler gets called when
l_Restarting is enabled, we'll use this flag to avoid config update
events resulting in object deactivation (object->IsActive() always
returns false).

refs #5996
refs #6691
refs #6970

fixes #7125
lib/base/application.cpp
lib/base/application.hpp
lib/db_ido/dbconnection.cpp