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

Method getKey

src/common/classes/ImplementHelper.cpp:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70unsigned int ConfigKeys::getKey(IFirebirdConf* config, const char* keyName)
71{
72 FbLocalStatus status;
73 unsigned int version = config->getVersion(&status) & 0xFFFF0000;
74 for (const_iterator itr = this->begin(); itr != this->end(); ++itr)
75 {
76 if (((*itr) & 0xFFFF0000) == version)
77 return *itr;
78 }
79
80 unsigned int secDbKey = config->getKey(keyName);
81 if (secDbKey != INVALID_KEY)
82 this->push(secDbKey);
83
84 return secDbKey;
85}
86
87
88#ifdef NOT_USED_OR_REPLACED

Callers

nothing calls this directly

Calls 4

getVersionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected