Skip to content

Commit

Permalink
Merge pull request #7 from electric-saw/fix/adjust-metrics
Browse files Browse the repository at this point in the history
Fix/adjust metrics
  • Loading branch information
snakeice authored Jan 11, 2024
2 parents 4c0b859 + bdce899 commit e4770a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/db/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ func (pg *PgConnection) ReindexTable(ctx context.Context, schema, table string,

if !noReindex {
if useReindexConcurrently {
if err := pg.ReindexIndexConcurrently(ctx, &index, &initialIndexStats); err != nil {
if err := pg.ReindexIndexConcurrently(context.Background(), &index, &initialIndexStats); err != nil {
pg.log.Errorf("failed on reindex concurrently: %s", err)
isReindexed = false
}
} else {
if err := pg.ReindexIndexOldReplace(ctx, &index); err != nil {
if err := pg.ReindexIndexOldReplace(context.Background(), &index); err != nil {
pg.log.Errorf("failed on reindex old replace: %w", err)
isReindexed = false
}
Expand Down

0 comments on commit e4770a0

Please sign in to comment.