MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / node_hash_from_list

Function node_hash_from_list

lib/pengine/utils.c:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92GHashTable *
93node_hash_from_list(GListPtr list)
94{
95 GListPtr gIter = list;
96 GHashTable *result = g_hash_table_new_full(crm_str_hash, g_str_equal, NULL, g_hash_destroy_str);
97
98 for (; gIter != NULL; gIter = gIter->next) {
99 node_t *node = (node_t *) gIter->data;
100 node_t *n = node_copy(node);
101
102 g_hash_table_insert(result, (gpointer) n->details->id, n);
103 }
104
105 return result;
106}
107
108GListPtr
109node_list_dup(GListPtr list1, gboolean reset, gboolean filter)

Callers 3

unpack_rsc_opFunction · 0.85
native_add_runningFunction · 0.85
node_hash_dupFunction · 0.85

Calls 1

node_copyFunction · 0.85

Tested by

no test coverage detected