瀏覽代碼

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
Steven Dake 17 年之前
父節點
當前提交
34583b8ef0
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      exec/totempg.c

+ 3 - 2
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));
 		}
 	}
 }