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

Method setupDefaultConfig

src/common/config/config.cpp:292–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290};
291
292void Config::setupDefaultConfig()
293{
294 fb_assert(defaultConfig);
295
296 for (unsigned i = 0; i < MAX_CONFIG_KEY; i++)
297 defaults[i] = entries[i].default_value;
298
299 const bool bootBuild = fb_utils::bootBuild();
300
301 ConfigValue* pDefault = &defaults[KEY_SERVER_MODE];
302 serverMode = bootBuild ? MODE_CLASSIC : MODE_SUPER;
303 pDefault->strVal = txtServerModes[2 * serverMode];
304
305 defaults[KEY_REMOTE_FILE_OPEN_ABILITY].boolVal = bootBuild;
306
307 //pDefault = &entries[KEY_WIRE_CRYPT].default_value;
308// if (!*pDefault)
309// *pDefault == (ConfigValue) (xxx == WC_CLIENT) ? WIRE_CRYPT_ENABLED : WIRE_CRYPT_REQUIRED;
310
311}
312
313void Config::fixDefaults()
314{

Callers

nothing calls this directly

Calls 1

bootBuildFunction · 0.85

Tested by

no test coverage detected