| 240 | } |
| 241 | |
| 242 | void DsqlStatementCache::purgeAllAttachments(thread_db* tdbb) |
| 243 | { |
| 244 | purge(tdbb, false); |
| 245 | |
| 246 | fb_assert(!lock || lock->lck_logical == LCK_SR); |
| 247 | |
| 248 | Lock tempLock(tdbb, 0, LCK_dsql_statement_cache); |
| 249 | |
| 250 | if (!LCK_lock(tdbb, &tempLock, LCK_PW, LCK_WAIT)) // notify others |
| 251 | status_exception::raise(tdbb->tdbb_status_vector); |
| 252 | |
| 253 | LCK_release(tdbb, &tempLock); |
| 254 | } |
| 255 | |
| 256 | void DsqlStatementCache::buildStatementKey(thread_db* tdbb, RefStrPtr& key, const string& text, USHORT clientDialect, |
| 257 | bool isInternalRequest) |
nothing calls this directly
no test coverage detected