]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
monitor: Separate QUORUM_REPORT_BAD events according to the node name
authorAlberto Garcia <berto@igalia.com>
Thu, 10 Mar 2016 11:55:25 +0000 (13:55 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 14 Mar 2016 16:35:06 +0000 (17:35 +0100)
commit6d425eb94d34df3fdcebbe512ae6091a307cb022
tree5063682e060c8320766e97f1a9203785d962a9c5
parentb9c600d20716b3d942cb07188ff998fb236a8365
monitor: Separate QUORUM_REPORT_BAD events according to the node name

The QUORUM_REPORT_BAD event is emitted whenever there's an I/O error
in a child of a Quorum device. This event is emitted at a maximum rate
of 1 per second. This means that an error in one of the children will
mask errors in the other children if they happen within the same 1
second interval.

This patch modifies qapi_event_throttle_equal() so QUORUM_REPORT_BAD
events are kept separately if they come from different children.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: b989c0cb3755bc4b6696e796fa8ed2ef6c56606a.1457610443.git.berto@igalia.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
monitor.c