summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acd2583)
raw | patch | inline | side by side (parent: acd2583)
author | Andrés J. Díaz <ajdiaz@connectical.com> | |
Sat, 20 Jun 2009 10:49:34 +0000 (12:49 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 20 Jun 2009 10:51:05 +0000 (12:51 +0200) |
src/utils_cache.c | patch | blob | history |
diff --git a/src/utils_cache.c b/src/utils_cache.c
index 2995501aeafd020c69082eb751b068c7661740f6..5f7181b0a363329424f9bb82b8bed1afc61eb0f9 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
sfree (key);
cache_free (ce);
}
- else if (status == 2) /* persist */
+
+ /* If we get here, the value is ``interesting''. Query the record from the
+ * cache and update the state field. */
+ if (c_avl_get (cache_tree, keys[i], (void *) &ce) != 0)
+ {
+ ERROR ("uc_check_timeout: cannot get data for %s from cache", keys[i]);
+ /* Do not free `keys[i]' so a notification is sent further down. */
+ continue;
+ }
+ assert (ce != NULL);
+
+ if (status == 2) /* persist */
{
DEBUG ("uc_check_timeout: %s is missing, sending notification.",
keys[i]);