On 4/7/2016 11:12 AM, Dimitry Sibiryakov wrote:
> 14.03.2016 10:13, Alex Peshkoff wrote:
>> There is a least one reason why expansion is needed (I have no idea how
>> can it be avoided) in yvalve. "Providers" config parameter is
>> per-database configurable, i.e. to have correct list of providers yvalve
>> needs to load database specific configuration which is impossible
>> without filename expansion cause in databases.conf expanded filenames
>> are used.

That's not the way it is supposed to work.  The Y-valve is supposed to 
be really, really stupid.  It passes a connection string to its known 
provides until one says it can make the connection.  Other than possibly 
a list of dynamically loadable providers, the Y-valve should need no 
configuration.  If it does, somebody has seriously screwed up the 
architecture.

Think of the Y-valve as a USB hub.  All it needs to know is what is 
plugged in.
>     Ok, check me, please: in following code, if alias was found, you forget 
> about that and
> feed original database name to providers. If it wasn't alias but a regular 
> file expansion
> from current dir or environment ISC_PATH, you use expanded file name. Why?
>
>> if (expandDatabaseName(orgFilename, expandedFilename, &config))
>> {
>>      expandedFilename = orgFilename;
>> }


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to