Skip to content

Commit

Permalink
refactor tn migration 6 (#20777)
Browse files Browse the repository at this point in the history
manual control flusher

Approved by: @zhangxu19830126
  • Loading branch information
XuPeng-SH authored Dec 17, 2024
1 parent 25b0a18 commit 703e47e
Show file tree
Hide file tree
Showing 18 changed files with 994 additions and 458 deletions.
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

0 comments on commit 703e47e

Please sign in to comment.