Re: [PATCH] config: Allow dynamic change of token_coefficient

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK But I really think there should be a comment included as to why this is a special case, or it'll just confused people further down the line!

Chrissie

On 05/05/14 10:21, Jan Friesse wrote:
token_coefficient change in cmap didn't triggered change. So only way
how to change token_coefficient was editing config file and reload.

Patch let's key totem.token_coefficient to be processed so
token_coefficient can be dynamically changed.

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
  exec/totemconfig.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exec/totemconfig.c b/exec/totemconfig.c
index 4aa8cc5..4d1c1e3 100644
--- a/exec/totemconfig.c
+++ b/exec/totemconfig.c
@@ -1199,7 +1199,7 @@ static void totem_change_notify(
  		return;

  	param = totem_get_param_by_name((struct totem_config *)user_data, key_name);
-	if (!param)
+	if (!param && strcmp(key_name, "totem.token_coefficient") != 0)
  		return;

  	/*


_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux