| 80 | } |
| 81 | |
| 82 | WorkerStableAttachment* 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 | |
| 106 | void WorkerStableAttachment::doOnIdleTimer(Firebird::TimerImpl* timer) |
| 107 | { |
nothing calls this directly
no test coverage detected