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.
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