Skip to content

Commit c523f29

Browse files
committed
Fix after review
1 parent bc916b9 commit c523f29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/QueryPipeline/RemoteQueryExecutorReadContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void RemoteQueryExecutorReadContext::Task::run(AsyncCallback async_callback, Sus
7171
}
7272
read_context.packet = read_context.executor.getConnections().receivePacketUnlocked(async_callback);
7373
read_context.has_read_packet_part = PacketPart::Body;
74-
if (read_context.packet.type == Protocol::Server::Data)
74+
if (read_context.packet.type == Protocol::Server::Data && read_context.packet.block.rows() > 0)
7575
read_context.has_data_packets = true;
7676

7777
suspend_callback();

src/Storages/ObjectStorage/StorageObjectStorageStableTaskDistributor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ void StorageObjectStorageStableTaskDistributor::rescheduleTasksFromReplica(size_
308308
"All replicas were marked as lost"
309309
);
310310

311-
replica_to_files_to_be_processed.erase(number_of_current_replica);
312311
for (const auto & file : processed_file_list_ptr->second)
313312
{
314313
auto file_replica_idx = getReplicaForFile(file->getPath());
315314
unprocessed_files.emplace(file->getPath(), std::make_pair(file, file_replica_idx));
316315
connection_to_files[file_replica_idx].push_back(file);
317316
}
317+
replica_to_files_to_be_processed.erase(number_of_current_replica);
318318
}
319319

320320
}

0 commit comments

Comments
 (0)