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

Function CMP_alloc_map

src/jrd/cmp.cpp:421–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419
420
421StreamType* CMP_alloc_map(thread_db* tdbb, CompilerScratch* csb, StreamType stream)
422{
423/**************************************
424 *
425 * C M P _ a l l o c _ m a p
426 *
427 **************************************
428 *
429 * Functional description
430 * Allocate and initialize stream map for view processing.
431 *
432 **************************************/
433 DEV_BLKCHK(csb, type_csb);
434
435 SET_TDBB(tdbb);
436
437 fb_assert(stream <= MAX_STREAMS);
438 StreamType* const p = FB_NEW_POOL(*tdbb->getDefaultPool()) StreamType[STREAM_MAP_LENGTH];
439 memset(p, 0, sizeof(StreamType[STREAM_MAP_LENGTH]));
440 p[0] = stream;
441 csb->csb_rpt[stream].csb_map = p;
442
443 return p;
444}
445
446
447USHORT NodeCopier::getFieldId(const FieldNode* field)

Callers 3

pass1ModifyMethod · 0.85
pass1StoreMethod · 0.85
pass1SourceMethod · 0.85

Calls 2

SET_TDBBFunction · 0.85
getDefaultPoolMethod · 0.45

Tested by

no test coverage detected