Skip to content

Commit

Permalink
catch up all archive slices
Browse files Browse the repository at this point in the history
  • Loading branch information
dungeon-master-666 committed Jul 9, 2024
1 parent 0cc5272 commit 34c782b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions validator/db/archive-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1008,13 +1008,15 @@ 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 34c782b

Please sign in to comment.