BIND with DLZ doesn't reconnect to the MySQL 5.x server after?disconnect
Emil Smolenski
ambind at raisa.eu.org
Sun Dec 13 16:33:58 UTC 2009
On Sat, 26 Sep 2009 05:20:33 +0200, Mark Andrews <marka at isc.org> wrote:
> In message <20090925184532.CF9CC790 at raisa.eu.org>, Emil Smolenski writes:
>> BTW, why there are only #ifdefs without #define in 9.7.0a3? Is user
>> forced to set this option himself to make it work?
> No. MYSQL_OPT_RECONNECT is only in some versions of mysql. If you have
> a version which supports MYSQL_OPT_RECONNECT then MYSQL_OPT_RECONNECT
> will be defined.
So why has it recently changed? I was confused previously, because I
didn't find it defined anywhere.
$ diff bind-9.7.0a3/contrib/dlz/drivers/dlz_mysql_driver.c \
bind-9.7.0rc1/contrib/dlz/drivers/dlz_mysql_driver.c
795c795
< #ifdef MYSQL_OPT_RECONNECT
---
> #if MYSQL_VERSION_ID >= 50000
929c929
< #ifdef MYSQL_OPT_RECONNECT
---
> #if MYSQL_VERSION_ID >= 50000
--
am
More information about the bind-users
mailing list