| 102 | } |
| 103 | |
| 104 | int 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 | |
| 138 | void PluginDatabases::handler(CachedSecurityDatabase* tgt) |
| 139 | { |
nothing calls this directly
no test coverage detected