connection: Fall through to global module triggers
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Fri, 24 Oct 2014 11:37:11 +0000 (14:37 +0300)
committerNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Fri, 24 Oct 2014 13:31:02 +0000 (16:31 +0300)
commit78faa9e7a60315baeac86559962260e3b13787e3
tree0d79294d191546788c8541a49370c3df7470cbd5
parentda98594f3dc1adb9d1a6697fa81514f9bc8ae741
connection: Fall through to global module triggers

Make module connection pool triggers use global module trigger
configuration, if there is no "trigger" section in the pool section.

Use fully-qualified module-specific trigger names for module-specific
connection pools in connection.c.

E.g. trigger "modules.ldap.open", instead of just "open" for pools
initialized with fr_connection_pool_module_init, being passed "ldap"
config section.

Send triggers even if the pool has no "trigger" section.

This makes exec_trigger fall through to global module triggers, if the
pool configuration doesn't have the "trigger" section.
src/include/connection.h
src/main/connection.c