[CP]reset medium info before get next one

This commit is contained in:
yangqise7en
2023-11-20 09:52:04 +00:00
committed by ob-robot
parent 5e05cc682e
commit f1e0acdf2f

View File

@ -106,7 +106,7 @@ int ObTabletMediumInfoReader::get_next_medium_info(
compaction::ObMediumCompactionInfo &medium_info)
{
int ret = OB_SUCCESS;
medium_info.reset();
if (OB_UNLIKELY(!is_inited_)) {
ret = OB_NOT_INIT;
LOG_WARN("not inited", K(ret), K_(is_inited));
@ -204,7 +204,6 @@ int ObTabletMediumInfoReader::get_specified_medium_info(
break;
}
}
tmp_medium_info.reset();
} // end of while
return ret;
}
@ -254,7 +253,6 @@ int ObTabletMediumInfoReader::get_max_medium_snapshot(int64_t &max_medium_snapsh
} else {
max_medium_snapshot = tmp_key.get_medium_snapshot();
}
tmp_medium_info.reset();
} // end of while
return ret;
}