Commit 92031f4e authored by David Boucher's avatar David Boucher
Browse files

fix(broker/unified_sql): DB deadlocks fixed.

parent 1be5cd36
......@@ -65,7 +65,8 @@ ba_event& ba_event::operator=(ba_event const& other) {
* @return True if the two objects are equal.
*/
bool ba_event::operator==(ba_event const& other) const {
return ba_id == other.ba_id && abs(first_level - other.first_level) < eps &&
return ba_id == other.ba_id &&
std::abs(first_level - other.first_level) < eps &&
end_time == other.end_time && in_downtime == other.in_downtime &&
start_time == other.start_time && status == other.status;
}
......
......@@ -284,6 +284,7 @@ class stream : public io::stream {
database::mysql_stmt _resources_host_update;
database::mysql_stmt _resources_service_insert;
database::mysql_stmt _resources_service_update;
database::mysql_stmt _resources_disable;
database::mysql_stmt _hscr_resources_update;
database::mysql_stmt _sscr_resources_update;
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment