Re: [PATCH] snmp: handle that a key (members) was added to CMAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK

I've pushed to master.

Thanks,
  Honza

Kazunori INOUE napsal(a):
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

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux