| 266 | } |
| 267 | |
| 268 | void RelBatchInsert::updateProgress(const ExecutionContext* context) const { |
| 269 | auto progressBar = ProgressBar::Get(*context->clientContext); |
| 270 | if (progressSharedState->partitionsTotal == 0) { |
| 271 | progressBar->updateProgress(context->queryID, 0); |
| 272 | } else { |
| 273 | double progress = static_cast<double>(progressSharedState->partitionsDone) / |
| 274 | static_cast<double>(progressSharedState->partitionsTotal); |
| 275 | progressBar->updateProgress(context->queryID, progress); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | } // namespace processor |
| 280 | } // namespace lbug |
no outgoing calls
no test coverage detected