8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

do not initialize context pool in init() - TLS may be not ready for it

This commit is contained in:
alexpeshkoff 2008-01-24 11:09:37 +00:00
parent 3dd50957de
commit 0943027a19

View File

@ -268,10 +268,6 @@ void MemoryPool::init()
// Now it's safe to actually create MemoryPool
processMemoryPool = MemoryPool::createPool();
fb_assert(processMemoryPool);
#ifndef SUPERCLIENT
MemoryPool::setContextPool(processMemoryPool);
#endif
}
// Should be last routine, called by InstanceControl,
@ -1775,12 +1771,12 @@ void MemoryPool::deallocate(void *block)
MemoryPool& AutoStorage::getAutoMemoryPool() {
#ifndef SUPERCLIENT
MemoryPool* p = MemoryPool::getContextPool();
#ifdef EMBEDDED
#if defined(EMBEDDED) || (!defined(SUPERSERVER))
if (! p)
{
p = getDefaultMemoryPool();
}
#endif //EMBEDDED
#endif
#else //SUPERCLIENT
MemoryPool* p = getDefaultMemoryPool();
#endif //SUPERCLIENT