| 295 | } |
| 296 | |
| 297 | int BackupRelationTask::getMaxWorkers() |
| 298 | { |
| 299 | unsigned int readers = m_items.getCount() - 1; |
| 300 | |
| 301 | if (readers > (m_relation->rel_max_pp + 1)) |
| 302 | readers = (m_relation->rel_max_pp + 1); |
| 303 | |
| 304 | return 1 + readers; |
| 305 | } |
| 306 | |
| 307 | IOBuffer* BackupRelationTask::getCleanBuffer(Item& item) |
| 308 | { |