Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor tn migration 6 #20777

Merged
merged 16 commits into from
Dec 17, 2024
2 changes: 1 addition & 1 deletion pkg/txn/storage/tae/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewTAEStorage(
}
taeHandler := rpc.NewTAEHandle(ctx, dataDir, opt)
tae := taeHandler.GetDB()
logtailer := logtail.NewLogtailer(ctx, tae.BGCheckpointRunner, tae.LogtailMgr, tae.Catalog)
logtailer := logtail.NewLogtailer(ctx, tae, tae.LogtailMgr, tae.Catalog)
server, err := service.NewLogtailServer(logtailServerAddr, logtailServerCfg, logtailer, rt, nil)
if err != nil {
return nil, err
Expand Down
4 changes: 3 additions & 1 deletion pkg/vm/engine/tae/common/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ type WaitOp = func() (ok bool, err error)
func RetryWithIntervalAndTimeout(
op WaitOp,
timeout time.Duration,
interval time.Duration, suppressTimout bool) (err error) {
interval time.Duration,
suppressTimout bool,
) (err error) {

ctx, cancel := context.WithTimeoutCause(context.Background(), timeout, moerr.CauseRetryWithIntervalAndTimeout)
defer cancel()
Expand Down
Loading
Loading