-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
lightning: do not output pre-check info when disable check-requirements #27934
Changes from 1 commit
09c0086
0ffd409
1f6fdaf
d53df6f
4405ef0
35fc4e4
c350c86
86b464b
dc49476
aac4185
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,8 +314,10 @@ func (tr *TableRestore) restoreEngines(pCtx context.Context, rc *Controller, cp | |
dataWorker := rc.closedEngineLimit.Apply() | ||
defer rc.closedEngineLimit.Recycle(dataWorker) | ||
err = tr.importEngine(ctx, dataClosedEngine, rc, eid, ecp) | ||
for _, chunk := range ecp.Chunks { | ||
rc.status.FinishedFileSize.Add(chunk.FileMeta.FileSize) | ||
if rc.status != nil { | ||
for _, chunk := range ecp.Chunks { | ||
rc.status.FinishedFileSize.Add(chunk.FileMeta.FileSize) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Multiple chunks may share a same file when we split large csv files. The correct value should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But if it started since a checkpoint, we shall calculate the total size rather than how much it does in this job. |
||
} | ||
} | ||
} | ||
if err != nil { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it's useful to keep the doc comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok