naemon / naemon-livestatus

Naemon - Livestatus Eventbroker Module
GNU General Public License v2.0
26 stars 30 forks source link

fix segfault when accessing downtimes/comments #51

Closed sni closed 5 years ago

sni commented 5 years ago

when retrieving downtime/comment related information from the hosts/services table we need to lock downtimes/comments data in the same way as it's done when requesting downtime/comment tables directly. Otherwise naemon will segfault when requesting ex.: "GET hosts\nColumns: comments" while comments are added or removed while the request is processed.

Therefor we expose the table lock and make sure we use locking when gathering those columns.

Signed-off-by: Sven Nierlein sven@nierlein.de