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:
parent
3dd50957de
commit
0943027a19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user