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

avoid static variable in inline function - thanks to Claudio

This commit is contained in:
alexpeshkoff 2007-04-05 08:55:34 +00:00
parent 3fd73117d3
commit a031aa26aa

View File

@ -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();