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

Method map4

src/jrd/Mapping.cpp:523–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523bool Mapping::Cache::map4(bool flagWild, unsigned flagSet, AuthReader& rdr, ExtInfo& info, AuthWriter& newBlock)
524{
525 if (!flagSet)
526 {
527 AuthWriter workBlock;
528
529 for (rdr.rewind(); rdr.getInfo(info); rdr.moveNext())
530 {
531 map(flagWild, info, workBlock);
532 }
533
534 info.found |= info.current;
535 info.current = 0;
536 newBlock.append(workBlock);
537 }
538
539 unsigned mapMask = FLAG_USER | FLAG_ROLE;
540 return (info.found & mapMask) == mapMask;
541}
542
543void Mapping::Cache::eraseEntry(Map* m)
544{

Callers 1

mapUserMethod · 0.80

Calls 5

mapClass · 0.50
rewindMethod · 0.45
getInfoMethod · 0.45
moveNextMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected