diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-04-21 11:16:27 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-04-21 14:57:44 -0400 |
commit | 11bb6c6cae66e63d10a9c6af295dc876e6f2103d (patch) | |
tree | 00f251dea3faa06a0ad50e4555f107617d18b74e /client | |
parent | ae53a3a0ce855ed5319eb591ed1eae7ac189ac7c (diff) | |
download | mongo-11bb6c6cae66e63d10a9c6af295dc876e6f2103d.tar.gz |
shutdown safety
Diffstat (limited to 'client')
-rw-r--r-- | client/connpool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/connpool.cpp b/client/connpool.cpp index e80df40790a..06dbf312b4e 100644 --- a/client/connpool.cpp +++ b/client/connpool.cpp @@ -104,6 +104,7 @@ namespace mongo { } DBClientBase* DBConnectionPool::_get(const string& ident) { + assert( ! inShutdown() ); scoped_lock L(_mutex); PoolForHost& p = _pools[ident]; return p.get(); |