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

Method purgeAllAttachments

src/dsql/DsqlStatementCache.cpp:242–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void 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
256void DsqlStatementCache::buildStatementKey(thread_db* tdbb, RefStrPtr& key, const string& text, USHORT clientDialect,
257 bool isInternalRequest)

Callers

nothing calls this directly

Calls 4

purgeFunction · 0.85
LCK_lockFunction · 0.85
raiseFunction · 0.85
LCK_releaseFunction · 0.85

Tested by

no test coverage detected