| 311 | } |
| 312 | |
| 313 | void DsqlStatementCache::ensureLockIsCreated(thread_db* tdbb) |
| 314 | { |
| 315 | if (!lock) |
| 316 | { |
| 317 | lock = FB_NEW_RPT(getPool(), 0) Lock(tdbb, 0, LCK_dsql_statement_cache, this, blockingAst); |
| 318 | LCK_lock(tdbb, lock, LCK_SR, LCK_WAIT); // never fails |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | #ifdef DSQL_STATEMENT_CACHE_DEBUG |
| 323 | void DsqlStatementCache::dump() |