Fix archive log consumption with larger piece

This commit is contained in:
obdev
2023-03-07 07:46:34 +00:00
committed by ob-robot
parent d89d11164b
commit 5ce2d0e295
7 changed files with 36 additions and 8 deletions

View File

@ -175,6 +175,7 @@ int ObArchiveFetcher::set_archive_info(
const ObCompressorType type,
const bool need_encrypt)
{
UNUSED(unit_size);
int ret = OB_SUCCESS;
if (OB_UNLIKELY(interval_us <= 0 || !genesis_scn.is_valid() || base_piece_id < 1 || unit_size <= 0)) {
ret = OB_INVALID_ARGUMENT;
@ -186,7 +187,6 @@ int ObArchiveFetcher::set_archive_info(
UNUSED(need_encrypt);
genesis_scn_ = genesis_scn;
base_piece_id_ = base_piece_id;
unit_size_ = unit_size;
unit_size_ = 1;
}
return ret;