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

Method checkLoadConfig

src/common/config/ConfigCache.cpp:54–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void ConfigCache::checkLoadConfig()
55{
56 { // scope
57 ReadLockGuard guard(rwLock, "ConfigCache::checkLoadConfig");
58 if (files->checkLoadConfig(false))
59 {
60 return;
61 }
62 }
63
64 WriteLockGuard guard(rwLock, "ConfigCache::checkLoadConfig");
65 // may be someone already reloaded?
66 if (files->checkLoadConfig(true))
67 {
68 return;
69 }
70
71 files->trim();
72 loadConfig();
73}
74
75bool ConfigCache::addFile(const Firebird::PathName& fName)
76{

Callers 2

expandDatabaseNameFunction · 0.80
addMethod · 0.80

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected