Skip to content

Commit

Permalink
Use truncated state to get term at applied_index (pingcap#307)
Browse files Browse the repository at this point in the history
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
  • Loading branch information
CalvinNeo authored Oct 21, 2024
1 parent c824fee commit b774aa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/tiflash-proxy
3 changes: 2 additions & 1 deletion dbms/src/Storages/KVStore/MultiRaft/Disagg/FastAddPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ FastAddPeerRes FastAddPeerImpl(
new_peer_id,
std::move(std::get<CheckpointRegionInfoAndData>(res)),
start_time);
GET_METRIC(tiflash_fap_task_result, type_success_transform).Increment();
if (final_res.status != FastAddPeerStatus::Canceled)
GET_METRIC(tiflash_fap_task_result, type_success_transform).Increment();
return final_res;
}
return std::get<FastAddPeerRes>(res);
Expand Down

0 comments on commit b774aa0

Please sign in to comment.