| 186 | } |
| 187 | |
| 188 | bool BackupRelationTask::handler(WorkItem& _item) |
| 189 | { |
| 190 | Item* item = static_cast<Item*>(&_item); |
| 191 | |
| 192 | try |
| 193 | { |
| 194 | Item::EnsureUnlockBuffer unlock(item); |
| 195 | |
| 196 | if (item->m_writer) |
| 197 | { |
| 198 | BurpGblHolder holder(m_masterGbl, item); |
| 199 | return fileWriter(*item); |
| 200 | } |
| 201 | |
| 202 | BurpGlobals gbl(m_masterGbl->uSvc); |
| 203 | gbl.master = false; |
| 204 | |
| 205 | BurpGblHolder holder(&gbl, item); |
| 206 | |
| 207 | initItem(&gbl, *item); |
| 208 | return tableReader(*item); |
| 209 | } |
| 210 | catch (const LongJump&) |
| 211 | { |
| 212 | m_stop = true; |
| 213 | m_error = true; |
| 214 | stopItems(); |
| 215 | } |
| 216 | catch (const Exception& ex) // could be different handlers for LongJump and Exception |
| 217 | { |
| 218 | FbLocalStatus st; |
| 219 | ex.stuffException(&st); |
| 220 | |
| 221 | { // scope |
| 222 | SimpleGblHolder gbl(m_masterGbl); |
| 223 | BURP_print_status(true, &st); |
| 224 | } |
| 225 | |
| 226 | m_stop = true; |
| 227 | m_error = true; |
| 228 | stopItems(); |
| 229 | } |
| 230 | return false; |
| 231 | } |
| 232 | |
| 233 | bool BackupRelationTask::getWorkItem(BackupRelationTask::WorkItem** pItem) |
| 234 | { |
nothing calls this directly
no test coverage detected