[FEAT MERGE] merge transfer

Co-authored-by: wxhwang <wxhwang@126.com>
Co-authored-by: godyangfight <godyangfight@gmail.com>
Co-authored-by: Tyshawn <tuyunshan@gmail.com>
This commit is contained in:
xuhuleon
2023-06-21 11:42:26 +00:00
committed by ob-robot
parent d06678002e
commit 9dae112952
1280 changed files with 149724 additions and 48813 deletions

View File

@ -1084,6 +1084,22 @@ bool ObLSDestRoundSummary::is_valid() const
return OB_INVALID_TENANT_ID != tenant_id_ && ls_id_.is_valid();
}
int ObLSDestRoundSummary::check_is_last_piece_for_deleted_ls(const int64_t piece_id, bool &last_piece) const
{
int ret = OB_SUCCESS;
const int64_t biggest_piece_id = max_piece_id();
if (!is_deleted_) {
last_piece = false;
} else if (piece_id > biggest_piece_id) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid piece id", K(ret), K(piece_id), KPC(this));
} else {
last_piece = (piece_id == biggest_piece_id);
}
return ret;
}
/**
* ------------------------------ObDestRoundSummary---------------------
*/