| 390 | } |
| 391 | |
| 392 | int KrpcDataStreamSender::Channel::CalculateRowBatchCapacity() const { |
| 393 | // TODO: take into account of var-len data at runtime. |
| 394 | return |
| 395 | max(1, parent_->per_channel_buffer_size_ / max(row_desc_->GetRowSize(), 1)); |
| 396 | } |
| 397 | |
| 398 | void KrpcDataStreamSender::Channel::MarkDone(const Status& status) { |
| 399 | if (UNLIKELY(!status.ok())) { |
nothing calls this directly
no test coverage detected