Sfoglia il codice sorgente

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 anni fa
parent
commit
34583b8ef0
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  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));
 		}
 	}
 }