Bug 114 - improve PostgreSQL thread support verification logic
Summary: improve PostgreSQL thread support verification logic
Status: NEW
Alias: None
Product: repro
Classification: Unclassified
Component: proxy (show other bugs)
Version: unspecified
Hardware: All All
: P1 normal
Assignee: Owner of all unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-18 10:41 CST by Daniel Pocock
Modified: 2015-11-18 10:41 CST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pocock 2015-11-18 10:41:31 CST
repro/PostgreSqlDb.cxx

   if(!PQisthreadsafe())
   {
      ErrLog( << "Repro uses PostgreSQL from multiple threads - you MUST link with a thread safe version of the PostgreSQL client library (libpq)!");
   }
   else
   {
      connectToDatabase();
   }



This logic should be improved:

- check the repro.config setting NumAuthGrabberWorkerThreads

- if it is greater than 1, the proxy should not run, logging the error and trying to continue isn't viable

- if (NumAuthGrabberWorkerThreads == 1), the proxy can run without logging the error