hash_entry 83 attrd/legacy.c gboolean attrd_trigger_update(attr_hash_entry_t * hash_entry); hash_entry 84 attrd/legacy.c void attrd_perform_update(attr_hash_entry_t * hash_entry); hash_entry 85 attrd/legacy.c static void update_local_attr(xmlNode *msg, attr_hash_entry_t *hash_entry); hash_entry 153 attrd/legacy.c stop_attrd_timer(attr_hash_entry_t * hash_entry) hash_entry 155 attrd/legacy.c if (hash_entry != NULL && hash_entry->timer_id != 0) { hash_entry 156 attrd/legacy.c crm_trace("Stopping %s timer", hash_entry->id); hash_entry 157 attrd/legacy.c g_source_remove(hash_entry->timer_id); hash_entry 158 attrd/legacy.c hash_entry->timer_id = 0; hash_entry 174 attrd/legacy.c attr_hash_entry_t *hash_entry = NULL; hash_entry 181 attrd/legacy.c hash_entry = g_hash_table_lookup(attr_hash, attr); hash_entry 183 attrd/legacy.c if (hash_entry == NULL) { hash_entry 186 attrd/legacy.c hash_entry = calloc(1, sizeof(attr_hash_entry_t)); hash_entry 187 attrd/legacy.c hash_entry->id = strdup(attr); hash_entry 189 attrd/legacy.c g_hash_table_insert(attr_hash, hash_entry->id, hash_entry); hash_entry 190 attrd/legacy.c hash_entry = g_hash_table_lookup(attr_hash, attr); hash_entry 191 attrd/legacy.c CRM_CHECK(hash_entry != NULL, return NULL); hash_entry 196 attrd/legacy.c free(hash_entry->set); hash_entry 197 attrd/legacy.c hash_entry->set = strdup(value); hash_entry 205 attrd/legacy.c free(hash_entry->section); hash_entry 206 attrd/legacy.c hash_entry->section = strdup(value); hash_entry 211 attrd/legacy.c free(hash_entry->dampen); hash_entry 212 attrd/legacy.c hash_entry->dampen = strdup(value); hash_entry 214 attrd/legacy.c hash_entry->timeout = crm_get_msec(value); hash_entry 218 attrd/legacy.c free(hash_entry->user); hash_entry 219 attrd/legacy.c hash_entry->user = NULL; hash_entry 223 attrd/legacy.c hash_entry->user = strdup(value); hash_entry 228 attrd/legacy.c log_hash_entry(LOG_DEBUG_2, hash_entry, "Found (and updated) entry:"); hash_entry 229 attrd/legacy.c return hash_entry; hash_entry 248 attrd/legacy.c attr_hash_entry_t *hash_entry = NULL; hash_entry 263 attrd/legacy.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &hash_entry)) { hash_entry 264 attrd/legacy.c if (regexec(®ex, hash_entry->id, 0, NULL, 0) == 0) { hash_entry 265 attrd/legacy.c crm_trace("Matched %s when clearing %s", hash_entry->id, what); hash_entry 266 attrd/legacy.c update_local_attr(xml, hash_entry); hash_entry 400 attrd/legacy.c attr_hash_entry_t *hash_entry = NULL; hash_entry 421 attrd/legacy.c hash_entry = find_hash_entry(xml); hash_entry 422 attrd/legacy.c stop_attrd_timer(hash_entry); hash_entry 423 attrd/legacy.c attrd_perform_update(hash_entry); hash_entry 776 attrd/legacy.c attr_hash_entry_t *hash_entry = NULL; hash_entry 790 attrd/legacy.c hash_entry = g_hash_table_lookup(attr_hash, data->attr); hash_entry 792 attrd/legacy.c if (hash_entry) { hash_entry 793 attrd/legacy.c free(hash_entry->stored_value); hash_entry 794 attrd/legacy.c hash_entry->stored_value = NULL; hash_entry 796 attrd/legacy.c hash_entry->stored_value = strdup(data->value); hash_entry 815 attrd/legacy.c attrd_perform_update(attr_hash_entry_t * hash_entry) hash_entry 821 attrd/legacy.c if (hash_entry == NULL) { hash_entry 825 attrd/legacy.c crm_info("Delaying operation %s=%s: cib not connected", hash_entry->id, hash_entry 826 attrd/legacy.c crm_str(hash_entry->value)); hash_entry 831 attrd/legacy.c if (hash_entry->user) { hash_entry 832 attrd/legacy.c user_name = hash_entry->user; hash_entry 833 attrd/legacy.c crm_trace("Performing request from user '%s'", hash_entry->user); hash_entry 837 attrd/legacy.c if (hash_entry->value == NULL) { hash_entry 839 attrd/legacy.c rc = delete_attr_delegate(the_cib, cib_none, hash_entry->section, attrd_uuid, NULL, hash_entry 840 attrd/legacy.c hash_entry->set, hash_entry->uuid, hash_entry->id, NULL, FALSE, hash_entry 843 attrd/legacy.c if (rc >= 0 && hash_entry->stored_value) { hash_entry 845 attrd/legacy.c rc, attrd_uuid, hash_entry->id, hash_entry 846 attrd/legacy.c hash_entry->uuid ? hash_entry->uuid : "<n/a>", hash_entry->set, hash_entry 847 attrd/legacy.c hash_entry->section); hash_entry 852 attrd/legacy.c attrd_uuid, hash_entry->id, hash_entry->uuid ? hash_entry->uuid : "<n/a>", hash_entry 853 attrd/legacy.c hash_entry->set, hash_entry->section, pcmk_strerror(rc), rc); hash_entry 857 attrd/legacy.c rc, attrd_uuid, hash_entry->id, hash_entry 858 attrd/legacy.c hash_entry->uuid ? hash_entry->uuid : "<n/a>", hash_entry->set, hash_entry 859 attrd/legacy.c hash_entry->section); hash_entry 863 attrd/legacy.c rc = update_attr_delegate(the_cib, cib_none, hash_entry->section, hash_entry 864 attrd/legacy.c attrd_uuid, NULL, hash_entry->set, hash_entry->uuid, hash_entry 865 attrd/legacy.c hash_entry->id, hash_entry->value, FALSE, user_name, NULL); hash_entry 867 attrd/legacy.c crm_notice("Could not update %s=%s: %s (%d)", hash_entry->id, hash_entry 868 attrd/legacy.c hash_entry->value, pcmk_strerror(rc), rc); hash_entry 869 attrd/legacy.c } else if (safe_str_neq(hash_entry->value, hash_entry->stored_value)) { hash_entry 870 attrd/legacy.c crm_notice("Sent update %d: %s=%s", rc, hash_entry->id, hash_entry->value); hash_entry 872 attrd/legacy.c crm_trace("Sent update %d: %s=%s", rc, hash_entry->id, hash_entry->value); hash_entry 876 attrd/legacy.c hash_entry->id, hash_entry->value); hash_entry 879 attrd/legacy.c data->attr = strdup(hash_entry->id); hash_entry 880 attrd/legacy.c if (hash_entry->value != NULL) { hash_entry 881 attrd/legacy.c data->value = strdup(hash_entry->value); hash_entry 915 attrd/legacy.c update_local_attr(xmlNode *msg, attr_hash_entry_t *hash_entry) hash_entry 920 attrd/legacy.c if (hash_entry->uuid == NULL) { hash_entry 924 attrd/legacy.c hash_entry->uuid = strdup(key); hash_entry 929 attrd/legacy.c hash_entry->id, (hash_entry->uuid? hash_entry->uuid : "no uuid"), hash_entry 930 attrd/legacy.c value, hash_entry->value, hash_entry->stored_value); hash_entry 932 attrd/legacy.c if (safe_str_eq(value, hash_entry->value) hash_entry 933 attrd/legacy.c && safe_str_eq(value, hash_entry->stored_value)) { hash_entry 938 attrd/legacy.c expanded = expand_attr_value(value, hash_entry->value); hash_entry 940 attrd/legacy.c crm_info("Expanded %s=%s to %s", hash_entry->id, value, expanded); hash_entry 945 attrd/legacy.c if (safe_str_eq(value, hash_entry->value) && hash_entry->timer_id) { hash_entry 951 attrd/legacy.c free(hash_entry->value); hash_entry 952 attrd/legacy.c hash_entry->value = NULL; hash_entry 954 attrd/legacy.c hash_entry->value = (expanded? expanded : strdup(value)); hash_entry 955 attrd/legacy.c crm_debug("New value of %s is %s", hash_entry->id, value); hash_entry 958 attrd/legacy.c stop_attrd_timer(hash_entry); hash_entry 960 attrd/legacy.c if (hash_entry->timeout > 0) { hash_entry 961 attrd/legacy.c hash_entry->timer_id = g_timeout_add(hash_entry->timeout, attrd_timer_callback, hash_entry); hash_entry 963 attrd/legacy.c attrd_trigger_update(hash_entry); hash_entry 1096 attrd/legacy.c attr_hash_entry_t *hash_entry = NULL; hash_entry 1158 attrd/legacy.c hash_entry = find_hash_entry(msg); hash_entry 1159 attrd/legacy.c if (hash_entry != NULL) { hash_entry 1160 attrd/legacy.c update_local_attr(msg, hash_entry); hash_entry 1177 attrd/legacy.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &hash_entry)) { hash_entry 1178 attrd/legacy.c int rc = regexec(®ex, hash_entry->id, 0, NULL, 0); hash_entry 1181 attrd/legacy.c crm_trace("Attribute %s matches %s", hash_entry->id, pattern); hash_entry 1182 attrd/legacy.c update_local_attr(msg, hash_entry); hash_entry 1201 attrd/legacy.c attrd_trigger_update(attr_hash_entry_t * hash_entry) hash_entry 1207 attrd/legacy.c hash_entry->id, crm_str(hash_entry->value)); hash_entry 1208 attrd/legacy.c log_hash_entry(LOG_DEBUG_2, hash_entry, "Sending flush op to all hosts for:"); hash_entry 1214 attrd/legacy.c crm_xml_add(msg, F_ATTRD_ATTRIBUTE, hash_entry->id); hash_entry 1215 attrd/legacy.c crm_xml_add(msg, F_ATTRD_SET, hash_entry->set); hash_entry 1216 attrd/legacy.c crm_xml_add(msg, F_ATTRD_SECTION, hash_entry->section); hash_entry 1217 attrd/legacy.c crm_xml_add(msg, F_ATTRD_DAMPEN, hash_entry->dampen); hash_entry 1218 attrd/legacy.c crm_xml_add(msg, F_ATTRD_VALUE, hash_entry->value); hash_entry 1220 attrd/legacy.c if (hash_entry->user) { hash_entry 1221 attrd/legacy.c crm_xml_add(msg, F_ATTRD_USER, hash_entry->user); hash_entry 1225 attrd/legacy.c if (hash_entry->timeout <= 0) { hash_entry 1226 attrd/legacy.c crm_xml_add(msg, F_ATTRD_IGNORE_LOCALLY, hash_entry->value); hash_entry 1227 attrd/legacy.c attrd_perform_update(hash_entry);