Skip to content

Commit eb9bfbe

Browse files
committed
Initialize last_node_activity for all nodes
1 parent f5fb292 commit eb9bfbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Storages/ObjectStorage/StorageObjectStorageStableTaskDistributor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ StorageObjectStorageStableTaskDistributor::StorageObjectStorageStableTaskDistrib
2424
, lock_object_storage_task_distribution_us(lock_object_storage_task_distribution_ms_ * 1000)
2525
, iterator_exhausted(false)
2626
{
27+
Poco::Timestamp now;
2728
size_t nodes = ids_of_nodes.size();
2829
for (size_t i = 0; i < nodes; ++i)
30+
{
2931
replica_to_files_to_be_processed[i] = std::list<ObjectInfoPtr>{};
32+
last_node_activity[i] = now;
33+
}
3034
}
3135

3236
ObjectInfoPtr StorageObjectStorageStableTaskDistributor::getNextTask(size_t number_of_current_replica)

0 commit comments

Comments
 (0)