Skip to content

Commit

Permalink
updadate
Browse files Browse the repository at this point in the history
  • Loading branch information
triump2020 committed Oct 29, 2024
1 parent 2e6ef5e commit 9a96d86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/vm/engine/disttae/logtail_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1929,9 +1929,11 @@ func updatePartitionOfPush(
if !ckpStart.IsEmpty() || !ckpEnd.IsEmpty() {
t0 = time.Now()
state.UpdateDuration(ckpStart, types.MaxTs())
//Notice that the checkpoint duration is same among all mo system tables,
//such as mo_databases, mo_tables, mo_columns.
if !lazyLoad {
if lazyLoad {
state.AppendCheckpoint(tl.CkpLocation, partition)
} else {
//Notice that the checkpoint duration is same among all mo system tables,
//such as mo_databases, mo_tables, mo_columns.
e.GetLatestCatalogCache().UpdateDuration(ckpStart, types.MaxTs())
}
v2.LogtailUpdatePartitonUpdateTimestampsDurationHistogram.Observe(time.Since(t0).Seconds())
Expand Down

0 comments on commit 9a96d86

Please sign in to comment.