dns: dlz_bind9 reference count logging
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Mon, 15 Oct 2018 03:52:40 +0000 (16:52 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 17 Oct 2018 03:40:06 +0000 (05:40 +0200)
commit3713905f8b4baa56b1bf571f71009cd77ccda6eb
treecf9c8b6e04104d0d984aa383fb621ed088defc81
parent2557ae53edcdb723a400f12d54081ef0c13b7600
dns: dlz_bind9 reference count logging

dlz_bind9 has to count the number of times the plugin is 'created' by bind's
plugin manager so it doesn't repeat setup.  Logging doesn't reflect this
reference counting logic properly and so messages like "samba_dlz: shutdown"
can, confusingly, come up when the database connection has not actually been
severed.  This patch adds the necessary logging.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13655
Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dns_server/dlz_bind9.c