[PATCH 3/4] cmap: add iterator finalize

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

 



Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx>
---
 tools/corosync-cmapctl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/corosync-cmapctl.c b/tools/corosync-cmapctl.c
index ec95127..dfc8c5c 100644
--- a/tools/corosync-cmapctl.c
+++ b/tools/corosync-cmapctl.c
@@ -374,6 +374,7 @@ static void print_iter(cmap_handle_t handle, const char *prefix)
 	while ((err = cmap_iter_next(handle, iter_handle, key_name, &value_len, &type)) == CS_OK) {
 		print_key(handle, key_name, value_len, NULL, type);
 	}
+	cmap_iter_finalize(handle, iter_handle);
 }
 
 static void delete_with_prefix(cmap_handle_t handle, const char *prefix)
@@ -397,6 +398,7 @@ static void delete_with_prefix(cmap_handle_t handle, const char *prefix)
 			fprintf(stderr, "Can't delete key %s. Error %s\n", key_name, cs_strerror(err2));
 		}
 	}
+	cmap_iter_finalize(handle, iter_handle);
 }
 
 static void cmap_notify_fn(
-- 
1.7.7.5

_______________________________________________
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