mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
avoid static variable in inline function - thanks to Claudio
This commit is contained in:
parent
3fd73117d3
commit
a031aa26aa
@ -169,10 +169,10 @@ Firebird::Vector<void*, MAP_CACHE_SIZE> extents_cache;
|
||||
Mutex cache_mutex;
|
||||
|
||||
// avoid races during initialization
|
||||
size_t map_page_size = 0;
|
||||
|
||||
inline size_t get_map_page_size()
|
||||
{
|
||||
static size_t map_page_size = 0;
|
||||
|
||||
if (! map_page_size)
|
||||
{
|
||||
map_page_size = get_page_size();
|
||||
|
Loading…
Reference in New Issue
Block a user