MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / bootBuild

Function bootBuild

src/common/utils.cpp:1200–1212  ·  view source on GitHub ↗

returns true if environment variable FIREBIRD_BOOT_BUILD is set

Source from the content-addressed store, hash-verified

1198
1199// returns true if environment variable FIREBIRD_BOOT_BUILD is set
1200bool bootBuild()
1201{
1202 static enum {FB_BOOT_UNKNOWN, FB_BOOT_NORMAL, FB_BOOT_SET} state = FB_BOOT_UNKNOWN;
1203
1204 if (state == FB_BOOT_UNKNOWN)
1205 {
1206 // not care much about protecting state with mutex - each thread will assign it same value
1207 Firebird::string dummy;
1208 state = readenv("FIREBIRD_BOOT_BUILD", dummy) ? FB_BOOT_SET : FB_BOOT_NORMAL;
1209 }
1210
1211 return state == FB_BOOT_SET;
1212}
1213
1214// Build full file name in specified directory
1215Firebird::PathName getPrefix(unsigned int prefType, const char* name)

Callers 5

getUserInfoFunction · 0.85
getPrefixFunction · 0.85
isPathInListMethod · 0.85
setupDefaultConfigMethod · 0.85
checkValuesMethod · 0.85

Calls 1

readenvFunction · 0.85

Tested by

no test coverage detected