Skip to content

Commit

Permalink
error for concurrent stats update
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Sep 5, 2024
1 parent 776406a commit bd138e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/libraries/doltcore/sqle/statspro/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (p *Provider) BootstrapDatabaseStats(ctx *sql.Context, db string) error {

func (p *Provider) RefreshTableStatsWithBranch(ctx *sql.Context, table sql.Table, db string, branch string) error {
if !p.TryLockForUpdate(table.Name(), db, branch) {
return nil
return fmt.Errorf("already updating statistics")
}
defer p.UnlockTable(table.Name(), db, branch)

Expand Down

0 comments on commit bd138e7

Please sign in to comment.