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

Method create

src/jrd/Attachment.cpp:90–105  ·  view source on GitHub ↗

static method

Source from the content-addressed store, hash-verified

88
89// static method
90Jrd::Attachment* Jrd::Attachment::create(Database* dbb, JProvider* provider)
91{
92 MemoryPool* const pool = dbb->createPool();
93
94 try
95 {
96 Attachment* const attachment = FB_NEW_POOL(*pool) Attachment(pool, dbb, provider);
97 pool->setStatsGroup(attachment->att_memory_stats);
98 return attachment;
99 }
100 catch (const Firebird::Exception&)
101 {
102 dbb->deletePool(pool);
103 throw;
104 }
105}
106
107
108// static method

Callers

nothing calls this directly

Calls 4

setStatsGroupMethod · 0.80
AttachmentClass · 0.70
createPoolMethod · 0.45
deletePoolMethod · 0.45

Tested by

no test coverage detected