Skip to content

Commit

Permalink
Revert "catch up all archive slices"
Browse files Browse the repository at this point in the history
This reverts commit 34c782b.
  • Loading branch information
dungeon-master-666 committed Aug 9, 2024
1 parent 2817ded commit 3ad2f06
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions validator/db/archive-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,15 +1057,13 @@ td::Status ArchiveManager::catch_up_package(const PackageId& id) {
FileDescription desc{id, x->deleted_};
desc.first_blocks = std::move(first_blocks);
desc.file = std::move(it->second.file);
if (!desc.deleted) {
td::actor::send_closure(desc.file_actor_id(), &ArchiveSlice::try_catch_up_with_primary);
}
map.erase(it);
map.emplace(id, std::move(desc));
} else if (!it->second.deleted) {
td::actor::send_closure(it->second.file_actor_id(), &ArchiveSlice::try_catch_up_with_primary);
}


// probably we should also call ArchiveSlice::try_catch_up_with_primary for desc.file,
// but for now we do it in ArchiveManager::get_max_masterchain_seqno, since it's the only use case.

return td::Status::OK();
}

Expand Down

0 comments on commit 3ad2f06

Please sign in to comment.