Skip to content

Commit

Permalink
#5156: do not include range prep time in 'Reingestion done' logged du…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
sreuland committed Jan 11, 2024
1 parent 428a0be commit c3eed80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ func (h reingestHistoryRangeState) run(s *system) (transition, error) {
h.fromLedger = 2
}

startTime := time.Now()
var startTime time.Time

if h.force {
if t, err := h.prepareRange(s); err != nil {
return t, err
}

startTime = time.Now()
if err := s.historyQ.Begin(s.ctx); err != nil {
return stop(), errors.Wrap(err, "Error starting a transaction")
}
Expand Down Expand Up @@ -167,6 +168,7 @@ func (h reingestHistoryRangeState) run(s *system) (transition, error) {
return t, err
}

startTime = time.Now()
if err := s.historyQ.Begin(s.ctx); err != nil {
return stop(), errors.Wrap(err, "Error starting a transaction")
}
Expand Down

0 comments on commit c3eed80

Please sign in to comment.