- Subject: [PATCH] snmp: handle that a key (members) was added to CMAP
- From: Kazunori INOUE <inouekazu@xxxxxxxxxxxxxxxxx>
- Date: Thu, 31 May 2012 19:11:49 +0900
- Delivered-to: discuss@xxxxxxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
Hi,
When new key (totem.pg.mrp.srp.members) was added to CMAP,
we would like to receive the trap of this time.
diff --git a/tools/corosync-notifyd.c b/tools/corosync-notifyd.c
index bad5c5a..861a9b3 100644
--- a/tools/corosync-notifyd.c
+++ b/tools/corosync-notifyd.c
@@ -211,7 +211,7 @@ static void _cs_cmap_members_key_changed (
cs_error_t err;
int no_retries;
- if (event != CMAP_TRACK_MODIFY) {
+ if (event != CMAP_TRACK_ADD && event != CMAP_TRACK_MODIFY) {
return ;
}
@@ -998,7 +998,7 @@ _cs_cmap_init(void)
}
rc = cmap_track_add(cmap_handle, "runtime.totem.pg.mrp.srp.members.",
- CMAP_TRACK_MODIFY | CMAP_TRACK_PREFIX,
+ CMAP_TRACK_ADD | CMAP_TRACK_MODIFY | CMAP_TRACK_PREFIX,
_cs_cmap_members_key_changed,
NULL,
&track_handle);
----
Best regards,
Kazunori INOUE
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss
[Corosync Project]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]