Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-28 Thread Andrew Beekhof
On 28 May 2014, at 3:04 pm, renayama19661...@ybb.ne.jp wrote: Hi Andrew, I'd expect that block to hit this clause though: } else if(mainloop_timer_running(a-timer)) { crm_info(Write out of '%s' delayed: timer is running, a-id); return; Which point of the source

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-28 Thread Andrew Beekhof
On 28 May 2014, at 4:10 pm, Andrew Beekhof and...@beekhof.net wrote: On 28 May 2014, at 3:04 pm, renayama19661...@ybb.ne.jp wrote: Hi Andrew, I'd expect that block to hit this clause though: } else if(mainloop_timer_running(a-timer)) { crm_info(Write out of '%s' delayed:

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-28 Thread renayama19661014
Hi Andrew, Perhaps try: diff --git a/attrd/commands.c b/attrd/commands.c index 7f1b4b0..7342e23 100644 --- a/attrd/commands.c +++ b/attrd/commands.c @@ -464,6 +464,15 @@ attrd_peer_update(crm_node_t *peer, xmlNode *xml, bool filter)      a-changed |= changed; +    if(changed) {

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-28 Thread Andrew Beekhof
On 28 May 2014, at 4:36 pm, renayama19661...@ybb.ne.jp wrote: Hi Andrew, Perhaps try: diff --git a/attrd/commands.c b/attrd/commands.c index 7f1b4b0..7342e23 100644 --- a/attrd/commands.c +++ b/attrd/commands.c @@ -464,6 +464,15 @@ attrd_peer_update(crm_node_t *peer, xmlNode *xml,

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-28 Thread renayama19661014
Hi Andrew, I confirmed movement at once. Your patch solves a problem. Many Thanks! Hideo Yamauchi. --- On Wed, 2014/5/28, renayama19661...@ybb.ne.jp renayama19661...@ybb.ne.jp wrote: Hi Andrew, Perhaps try: diff --git a/attrd/commands.c b/attrd/commands.c index 7f1b4b0..7342e23

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-27 Thread Andrew Beekhof
On 27 May 2014, at 12:13 pm, renayama19661...@ybb.ne.jp wrote: Hi All, The attrd_updater command ignores the dampen parameter and updates an attribute. Step1) Start one node. [root@srv01 ~]# crm_mon -1 -Af Last updated: Tue May 27 19:36:35 2014 Last change: Tue May 27 19:34:59 2014

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-27 Thread renayama19661014
Hi Andrew, Thank you for comment. --- attrd/command.c - (snip)     /* this only involves cluster nodes. */     if(v-nodeid == 0 (v-is_remote == FALSE)) {         if(crm_element_value_int(xml, F_ATTRD_HOST_ID, (int*)v-nodeid) == 0) {             /* Create the name/id association */

Re: [Pacemaker] [Problem] The dampen parameter of the attrd_updater command is ignored, and an attribute is updated.

2014-05-27 Thread renayama19661014
Hi Andrew, I'd expect that block to hit this clause though:      } else if(mainloop_timer_running(a-timer)) {         crm_info(Write out of '%s' delayed: timer is running, a-id);         return; Which point of the source code does the suggested code mentioned above revise? (Which