Skip to content

Commit

Permalink
branch-3.0: [Fix](merge-on-write) Should clear `GetDeleteBitmapUpdate…
Browse files Browse the repository at this point in the history
…LockResponse` when geting delete bitmap update lock fail and retry #44975 (#45010)

Cherry-picked from #44975

Co-authored-by: bobhan1 <[email protected]>
  • Loading branch information
github-actions[bot] and bobhan1 authored Dec 5, 2024
1 parent fffe19a commit 9d73f27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloud/src/meta-service/meta_service_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ void finish_rpc(std::string_view func_name, brpc::Controller* ctrl, Response* re
<< " status=" << res->status().ShortDebugString()
<< " tablet=" << res->tablet_id()
<< " delete_bitmap_count=" << res->segment_delete_bitmaps_size();
} else if constexpr (std::is_same_v<Response, GetDeleteBitmapUpdateLockResponse>) {
if (res->status().code() != MetaServiceCode::OK) {
res->clear_base_compaction_cnts();
res->clear_cumulative_compaction_cnts();
res->clear_cumulative_points();
}
} else if constexpr (std::is_same_v<Response, GetObjStoreInfoResponse> ||
std::is_same_v<Response, GetStageResponse>) {
std::string debug_string = res->DebugString();
Expand Down

0 comments on commit 9d73f27

Please sign in to comment.