Navigation


Changeset 826:d38c8ce61e4e in freeDiameter


Ignore:
Timestamp:
Sep 19, 2012, 5:33:02 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Add check for pthread-safety of lib pgsql

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_acct/acct_db.c

    r772 r826  
    7878        CHECK_PARAMS( acct_config && acct_config->conninfo && acct_config->tablename );
    7979       
     80        CHECK_PARAMS_DO( PQisthreadsafe() == 1, {
     81                fd_log_debug("You PostGreSQL installation is not thread-safe!\n");
     82                return EINVAL;
     83        } );                   
     84       
    8085        /* Use the information from acct_config to create the connection and prepare the query */
    8186        conn = PQconnectdb(acct_config->conninfo);
Note: See TracChangeset for help on using the changeset viewer.