On 6/9/23 14:44, 'Dimitry Sibiryakov' via firebird-devel wrote:
> 'Alex Peshkoff' via firebird-devel wrote 09.06.2023 13:39:
>> BTW, I've found a very simple way to avoid infinite recursion not
>> touching Redirection at all.
>
> I don't see how exactly your commit prevent recursion
This is main change:
@@ -8092,7 +8087,7 @@ static bool get_new_dpb(ClumpletWriter& dpb, const
ParametersSet& par)
*
**************************************/
bool redirection = Config::getRedirection();
- if (((!redirection) && dpb.find(par.address_path)) ||
dpb.find(par.map_attach))
+ if (((loopback || !redirection) && dpb.find(par.address_path)) ||
dpb.find(par.map_attach))
{
status_exception::raise(Arg::Gds(isc_unavailable));
}
Loopback provider will never perform redirection, possible only with
expicit node name.