Skip to content

Commit dd8a9b4

Browse files
authored
services/horizon/internal/ingest: Fix total lookup table rows deleted metric (#5528)
1 parent 18a614a commit dd8a9b4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

services/horizon/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ file. This project adheres to [Semantic Versioning](http://semver.org/).
77

88
### Fixed
99
- Fix the issue where the skip-txmeta flag is not being applied in `/transactions/{tx-id}` endpoint ([5523](https://github.com/stellar/go/pull/5523)).
10+
- Fix `horizon_ingest_reap_lookup_tables_duration_seconds` metric which reports the total number of lookup table rows which were reaped ([5528](https://github.com/stellar/go/pull/5528)).
1011

1112
## 22.0.0-rc2
1213

services/horizon/internal/ingest/reap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ func (r *lookupTableReaper) deleteOrphanedRows(ctx context.Context) error {
331331
}
332332
deleteDuration := time.Since(deleteStartTime)
333333
totalDeleteDuration += deleteDuration
334+
totalDeleted += rowsDeleted
334335

335336
r.rowsReapedByLookupTable.With(prometheus.Labels{"table": table}).
336337
Observe(float64(rowsDeleted))

0 commit comments

Comments
 (0)