From 1102e2c921036d553358866c9309d2d1bffb3d12 Mon Sep 17 00:00:00 2001 From: peavey Date: Sat, 30 Dec 2006 18:07:20 +0000 Subject: This is a longshot, pls test AnnMaster. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6178 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') 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; } -- cgit v1.2.3