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

Method shutdown

src/auth/SecDbCache.cpp:104–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104int PluginDatabases::shutdown()
105{
106 try
107 {
108 MutexLockGuard g(arrayMutex, FB_FUNCTION);
109 for (unsigned int i = 0; i < dbArray.getCount(); ++i)
110 {
111 if (dbArray[i])
112 {
113 FbLocalStatus s;
114 TimerInterfacePtr()->stop(&s, dbArray[i]);
115 check(&s);
116 dbArray[i]->release();
117 dbArray[i] = NULL;
118 }
119 }
120 dbArray.clear();
121 }
122 catch (Exception &ex)
123 {
124 StaticStatusVector st;
125 ex.stuffException(st);
126 const ISC_STATUS* status = st.begin();
127 if (status[0] == 1 && status[1] != isc_att_shutdown)
128 {
129 iscLogStatus("Legacy security database shutdown", status);
130 }
131
132 return FB_FAILURE;
133 }
134
135 return FB_SUCCESS;
136}
137
138void PluginDatabases::handler(CachedSecurityDatabase* tgt)
139{

Callers

nothing calls this directly

Calls 9

TimerInterfacePtrClass · 0.85
iscLogStatusFunction · 0.85
checkFunction · 0.50
getCountMethod · 0.45
stopMethod · 0.45
releaseMethod · 0.45
clearMethod · 0.45
stuffExceptionMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected