@@ -1234,6 +1234,7 @@ func restoreStream(
1234
1234
totalSize uint64
1235
1235
checkpointTotalKVCount uint64
1236
1236
checkpointTotalSize uint64
1237
+ currentTS uint64
1237
1238
mu sync.Mutex
1238
1239
startTime = time .Now ()
1239
1240
)
@@ -1243,9 +1244,12 @@ func restoreStream(
1243
1244
} else {
1244
1245
totalDureTime := time .Since (startTime )
1245
1246
summary .Log ("restore log success summary" , zap .Duration ("total-take" , totalDureTime ),
1246
- zap .Uint64 ("restore-from" , cfg .StartTS ), zap .Uint64 ("restore-to" , cfg .RestoreTS ),
1247
- zap .String ("restore-from" , stream .FormatDate (oracle .GetTimeFromTS (cfg .StartTS ))),
1248
- zap .String ("restore-to" , stream .FormatDate (oracle .GetTimeFromTS (cfg .RestoreTS ))),
1247
+ zap .Uint64 ("source-start-point" , cfg .StartTS ),
1248
+ zap .Uint64 ("source-end-point" , cfg .RestoreTS ),
1249
+ zap .Uint64 ("target-end-point" , currentTS ),
1250
+ zap .String ("source-start" , stream .FormatDate (oracle .GetTimeFromTS (cfg .StartTS ))),
1251
+ zap .String ("source-end" , stream .FormatDate (oracle .GetTimeFromTS (cfg .RestoreTS ))),
1252
+ zap .String ("target-end" , stream .FormatDate (oracle .GetTimeFromTS (currentTS ))),
1249
1253
zap .Uint64 ("total-kv-count" , totalKVCount ),
1250
1254
zap .Uint64 ("skipped-kv-count-by-checkpoint" , checkpointTotalKVCount ),
1251
1255
zap .String ("total-size" , units .HumanSize (float64 (totalSize ))),
@@ -1280,7 +1284,6 @@ func restoreStream(
1280
1284
}
1281
1285
defer client .Close ()
1282
1286
1283
- var currentTS uint64
1284
1287
if taskInfo != nil && taskInfo .RewriteTS > 0 {
1285
1288
// reuse the task's rewrite ts
1286
1289
log .Info ("reuse the task's rewrite ts" , zap .Uint64 ("rewrite-ts" , taskInfo .RewriteTS ))
0 commit comments