Skip to content

Commit

Permalink
improve trace assembler states handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dungeon-master-666 committed Jan 2, 2025
1 parent 05b8572 commit 67b6d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tondb-scanner/src/TraceAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void TraceAssembler::alarm() {
}, td::Timestamp::now());

ton::delay_action([this]() {
auto S = gc_states(this->db_path_, this->expected_seqno_, 10);
auto S = gc_states(this->db_path_, this->expected_seqno_, 100);
if (S.is_error()) {
LOG(ERROR) << "Error while garbage collecting Trace Assembler states: " << S.move_as_error();
}
Expand Down Expand Up @@ -153,7 +153,7 @@ td::Result<ton::BlockSeqno> TraceAssembler::restore_state(ton::BlockSeqno seqno)
}

for (const auto& [state_seqno, path] : fileMap) {
LOG(INFO) << "Found TA state seqno:" << seqno << " - path: " << path.string() << '\n';
LOG(INFO) << "Found TA state seqno: " << state_seqno << " - path: " << path.string() << '\n';
if (state_seqno > seqno) {
LOG(WARNING) << "Found trace assembler state " << state_seqno << " newer than requested " << seqno;
continue;
Expand Down

0 comments on commit 67b6d66

Please sign in to comment.