Skip to content

Commit

Permalink
trace
Browse files Browse the repository at this point in the history
Signed-off-by: Calvin Neo <[email protected]>
  • Loading branch information
CalvinNeo committed Sep 23, 2024
1 parent 17403c8 commit 258aec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbms/src/Common/TiFlashMetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ static_assert(RAFT_REGION_BIG_WRITE_THRES * 4 < RAFT_REGION_BIG_WRITE_MAX, "Inva
F(type_failed_baddata, {{"type", "failed_baddata"}}), \
F(type_failed_repeated, {{"type", "failed_repeated"}}), \
F(type_failed_build_chkpt, {{"type", "failed_build_chkpt"}}), \
F(type_reuse_chkpt_cache, {{"type", "reuse_chkpt_cache"}}), \
F(type_restore, {{"type", "restore"}}), \
F(type_succeed, {{"type", "succeed"}})) \
M(tiflash_fap_task_state, \
Expand Down
1 change: 1 addition & 0 deletions dbms/src/Storages/DeltaMerge/Segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ Segment::SegmentMetaInfos Segment::readAllSegmentsMetaInfoInRange( //
auto lock = end_to_segment_id_cache->readLock();
bool is_cache_ready = end_to_segment_id_cache->isReady(lock);
RUNTIME_CHECK(is_cache_ready, checkpoint_info->region_id, context.keyspace_id, context.physical_table_id);
GET_METRIC(tiflash_fap_task_result, type_reuse_chkpt_cache).Increment();
// ... then we could seek to `current_segment_id` in cache to avoid some read.
auto current_segment_id
= end_to_segment_id_cache->getSegmentIdContainingKey(lock, target_range.getStart().toRowKeyValue());
Expand Down

0 comments on commit 258aec3

Please sign in to comment.