We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db23547 commit faff5fbCopy full SHA for faff5fb
yt/yt/client/table_client/adapters.cpp
@@ -225,7 +225,7 @@ void PipeReaderToWriterByBatches(
225
try {
226
TPeriodicYielder yielder(TDuration::Seconds(1));
227
228
- while (auto batch = reader->Read(options)) {
+ for (bool isFirstBatch = true; auto batch = reader->Read(options); isFirstBatch = false) {
229
yielder.TryYield();
230
231
if (batch->IsEmpty()) {
@@ -251,7 +251,7 @@ void PipeReaderToWriterByBatches(
251
.ThrowOnError();
252
}
253
254
- if (optionsUpdater) {
+ if (optionsUpdater && !isFirstBatch) {
255
options.MaxRowsPerRead = rowsRead;
256
optionsUpdater(&options, timer.GetElapsedTime());
257
0 commit comments