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

Method create

src/jrd/WorkerAttachment.cpp:82–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82WorkerStableAttachment* WorkerStableAttachment::create(FbStatusVector* status, Database* dbb,
83 JProvider* provider, WorkerAttachment* workers)
84{
85 Attachment* attachment = NULL;
86 try
87 {
88 attachment = Attachment::create(dbb, provider);
89 attachment->att_filename = dbb->dbb_filename;
90 attachment->att_flags |= ATT_worker;
91
92 WorkerStableAttachment* sAtt = FB_NEW WorkerStableAttachment(status, attachment, workers);
93 return sAtt;
94 }
95 catch (const Exception& ex)
96 {
97 ex.stuffException(status);
98 }
99
100 if (attachment)
101 Attachment::destroy(attachment);
102
103 return NULL;
104}
105
106void WorkerStableAttachment::doOnIdleTimer(Firebird::TimerImpl* timer)
107{

Callers

nothing calls this directly

Calls 4

createFunction · 0.85
destroyFunction · 0.50
stuffExceptionMethod · 0.45

Tested by

no test coverage detected