[acassen/keepalived] 77e82c: Set global data default values after parsing confi...

Alexandre Cassen <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <556854d9766e_9f03fef923772bc31840@hookshot-fe6-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/acassen/keepalived
  Commit: 77e82c934e56ef01525f8a7b16df229322918c62
      https://github.com/acassen/keepalived/commit/77e82c934e56ef01525f8a7b16df229322918c62
  Author: Ryan O'Hara <[email protected]>
  Date:   2015-05-14 (Thu, 14 May 2015)

  Changed paths:
    M keepalived/check/check_daemon.c
    M keepalived/core/global_data.c
    M keepalived/include/global_data.h
    M keepalived/vrrp/vrrp_daemon.c

  Log Message:
  -----------
  Set global data default values after parsing config file

This patch will defer setting the global data default values until
after the config file has been parsed. This will potentially avoid two
calls to getaddrinfo. For example, if the router_id and/or email_from
parameters are set in the config file, there is no need to call
getaddrinfo twice in order to set a default value. Instead, this patch
will check to see if they values are unset after parsing the config
file. Note that email_from and smtp_connection_to are only set to a
default value if they are unitialized and smtp_server is specified.


  Commit: 8c3d8636aa30baeec29915ec2a20780e08064691
      https://github.com/acassen/keepalived/commit/8c3d8636aa30baeec29915ec2a20780e08064691
  Author: Alexandre Cassen <[email protected]>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    M keepalived/check/check_daemon.c
    M keepalived/core/global_data.c
    M keepalived/include/global_data.h
    M keepalived/vrrp/vrrp_daemon.c

  Log Message:
  -----------
  Merge pull request #148 from rohara/devel

Set global data default values after parsing config file


Compare: https://github.com/acassen/keepalived/compare/14514e832013...8c3d8636aa30

------------------------------------------------------------------------------

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.