From d06837c2637fea792b71fbd7a70db48ab0258a77 Mon Sep 17 00:00:00 2001 From: Philipp Marek Date: Wed, 19 Oct 2011 16:09:47 +0200 Subject: [PATCH] Only allow a single change to be queued. --- tools/attrd.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git tools/attrd.c tools/attrd.c index 83e029e..ab756c1 100644 --- tools/attrd.c +++ tools/attrd.c @@ -823,8 +823,8 @@ attrd_local_callback(xmlNode * msg) } set_unexpanded: - if (safe_str_eq(value, hash_entry->value) && hash_entry->timer_id) { - /* We're already waiting to set this value */ + if (hash_entry->timer_id) { + /* We're already waiting to set this value */ return; } @@ -835,6 +835,8 @@ attrd_local_callback(xmlNode * msg) crm_debug("New value of %s is %s", attr, value); } + // don't allow change if in progress? + // don't restart timer? stop_attrd_timer(hash_entry); if (hash_entry->timeout > 0) { -- 1.7.6.3