From fbd0e4954c1a2bc276e1841c2072f9b69c6d489e Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 14 Sep 2010 17:08:18 +0000 Subject: [PATCH] remove duplicate locks - handled in pool.hpp already (mapnik held up fine this way in the wms benchmarks) --- plugins/input/postgis/connection_manager.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/input/postgis/connection_manager.hpp b/plugins/input/postgis/connection_manager.hpp index f50569355..ca6909ecd 100644 --- a/plugins/input/postgis/connection_manager.hpp +++ b/plugins/input/postgis/connection_manager.hpp @@ -106,7 +106,7 @@ public: bool registerPool(const ConnectionCreator& creator,unsigned initialSize,unsigned maxSize) { #ifdef MAPNIK_THREADSAFE - mutex::scoped_lock lock(mutex_); + //mutex::scoped_lock lock(mutex_); #endif if (pools_.find(creator.id())==pools_.end()) { @@ -121,7 +121,7 @@ public: boost::shared_ptr getPool(std::string const& key) { #ifdef MAPNIK_THREADSAFE - mutex::scoped_lock lock(mutex_); + //mutex::scoped_lock lock(mutex_); #endif ContType::const_iterator itr=pools_.find(key); if (itr!=pools_.end()) @@ -135,7 +135,7 @@ public: HolderType get(std::string const& key) { #ifdef MAPNIK_THREADSAFE - mutex::scoped_lock lock(mutex_); + //mutex::scoped_lock lock(mutex_); #endif ContType::const_iterator itr=pools_.find(key); if (itr!=pools_.end())