Skip to content

Commit

Permalink
/go/libraries/doltcore/sqle/dsess/globalstate.go: add temp timing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeegoddd committed Jan 15, 2025
1 parent 6a75a52 commit 0275b1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/libraries/doltcore/sqle/dsess/globalstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ package dsess

import (
"context"
"fmt"
"github.com/fatih/color"
"sync"
"time"

"github.com/dolthub/go-mysql-server/sql"
"golang.org/x/sync/errgroup"
Expand Down Expand Up @@ -88,10 +91,13 @@ func NewGlobalStateStoreForDb(ctx context.Context, dbName string, db *doltdb.Dol
return GlobalStateImpl{}, err
}

start := time.Now()
tracker, err := NewAutoIncrementTracker(ctx, dbName, roots...)
if err != nil {
fmt.Fprintf(color.Output, "DUSTIN: NewAutoIncrementTracker: error: elapsed: %v\n", time.Since(start))
return GlobalStateImpl{}, err
}
fmt.Fprintf(color.Output, "DUSTIN: NewAutoIncrementTracker: success: elapsed: %v\n", time.Since(start))

return GlobalStateImpl{
aiTracker: tracker,
Expand Down

0 comments on commit 0275b1f

Please sign in to comment.