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

Function find_filter

src/jrd/blb.cpp:2333–2368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2331
2332
2333static BlobFilter* find_filter(thread_db* tdbb, SSHORT from, SSHORT to)
2334{
2335/**************************************
2336 *
2337 * f i n d _ f i l t e r
2338 *
2339 **************************************
2340 *
2341 * Functional description
2342 * Find blob filter.
2343 *
2344 **************************************/
2345 SET_TDBB(tdbb);
2346 Database* dbb = tdbb->getDatabase();
2347 CHECK_DBB(dbb);
2348
2349 BlobFilter* cache = dbb->dbb_blob_filters;
2350 for (; cache; cache = cache->blf_next)
2351 {
2352 if (cache->blf_from == from && cache->blf_to == to)
2353 return cache;
2354 }
2355
2356 cache = BLF_lookup_internal_filter(tdbb, from, to);
2357 if (!cache) {
2358 cache = MET_lookup_filter(tdbb, from, to);
2359 }
2360
2361 if (cache)
2362 {
2363 cache->blf_next = dbb->dbb_blob_filters;
2364 dbb->dbb_blob_filters = cache;
2365 }
2366
2367 return cache;
2368}
2369
2370
2371blob_page* blb::get_next_page(thread_db* tdbb, WIN* window)

Callers 2

create2Method · 0.85
open2Method · 0.85

Calls 4

SET_TDBBFunction · 0.85
CHECK_DBBFunction · 0.85
getDatabaseMethod · 0.80

Tested by

no test coverage detected