summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 18:07:20 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 18:07:20 +0000
commit1102e2c921036d553358866c9309d2d1bffb3d12 (patch)
treeb87fa2f44279b792270b703279712e6fc2d6239a /src/modules/extra
parent1aaa30bc9ba469e1e0bd97e44e57d5dfd2d60b85 (diff)
This is a longshot, pls test AnnMaster.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6178 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_pgsql.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index a065b41b9..0f6ef2c85 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -540,7 +540,7 @@ SQLConn::~SQLConn()
bool SQLConn::DoConnect()
{
//ServerInstance->Log(DEBUG, "SQLConn::DoConnect()");
-
+
if(!(sql = PQconnectStart(MkInfoStr().c_str())))
{
Instance->Log(DEBUG, "Couldn't allocate PGconn structure, aborting: %s", PQerrorMessage(sql));
@@ -1309,5 +1309,6 @@ class ModulePgSQLFactory : public ModuleFactory
extern "C" void * init_module( void )
{
+ PQregisterThreadLock(pgthreadlock_t(1));
return new ModulePgSQLFactory;
}