From 34583b8ef0e1be1380e755ef7ea6fca01a42d4e3 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Thu, 12 Mar 2009 16:15:34 +0000 Subject: [PATCH] Use nocheck flagging on confchg iteration of handle ids. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1845 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totempg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exec/totempg.c b/exec/totempg.c index 8dbdb5ce..df3df580 100644 --- a/exec/totempg.c +++ b/exec/totempg.c @@ -315,7 +315,7 @@ static inline void app_confchg_fn ( for (i = 0; i <= totempg_max_handle; i++) { res = hdb_handle_get (&totempg_groups_instance_database, - i, (void *)&instance); + hdb_nocheck_convert (i), (void *)&instance); if (res == 0) { if (instance->confchg_fn) { @@ -330,7 +330,8 @@ static inline void app_confchg_fn ( ring_id); } - hdb_handle_put (&totempg_groups_instance_database, i); + hdb_handle_put (&totempg_groups_instance_database, + hdb_nocheck_convert (i)); } } }