LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] ldirectord bugfix patch - force unset parameters to default

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] ldirectord bugfix patch - force unset parameters to default
Cc: Simon Horman <horms@xxxxxxxxxxxx>
From: Sean Millichamp <sean@xxxxxxxxxxx>
Date: Thu, 14 May 2009 17:35:31 -0400
Patch 2/4

This forces resetting of unset configuration directives to defaults.

The default values for global configuration directives are set once
early on in the start up.  If a configuration file specifies a global
configuration option and then, at a later time, that option is removed
from the configuration file, the global variable will neither get set
nor reset during the configuration reload.  This results in the old
setting persisting, instead of the expect and documented "default" value
in  the absence of the configuration directive.

This patch puts all the defaults into a function (set_defaults) which
is called once at startup and once at every configuration reload.  All
global configuration defaults should be set in this function when added
or changed.

Thanks,
Sean

Attachment: ldirectord-reset-defaults.patch
Description: Text Data

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>