sql module, postgresql driver
FreeRadius Devel
freeradius-devel at list.coretech.ro
Mon Jan 1 23:41:11 CET 2007
hello,
in case of a fatal error that occurs on the postgresql database server
the sql accounting module returns "ok" so the "redundancy" feature of
freeradius does not work.
in file src/modules/rlm_sql/drivers/rlm_sql_postgresql/sql_postgresql.c,
function sql_check_error I see that for non "SQL_DOWN" errors it returns
0, should it be -1 ? a non zero value ?
thanks,
Razvan Radu
::: radiusd -X :::
======================================================
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql_postgresql: Status: PGRES_FATAL_ERROR
rlm_sql_postgresql: Error relation "bbb" does not exist
rlm_sql_postgresql: Postgresql Fatal Error: [42P01] Accured!!
rlm_sql_postgresql: Postgresql Fatal Error: [UNDEFINED TABLE] Occured!!
rlm_sql (sql): Released sql socket id: 4
modcall[accounting]: module "sql" returns ok for request 351
modcall: group returns ok for request 351
modcall: group accounting returns ok for request 351
======================================================
More information about the Freeradius-Devel
mailing list