[GC] GC should only care committed ls

This commit is contained in:
yyy-hust
2023-07-19 11:12:15 +00:00
committed by ob-robot
parent 160c6eb35d
commit a3e6affa54
3 changed files with 13 additions and 2 deletions

View File

@ -463,6 +463,11 @@ ObInnerLSStatus ObLS::get_create_state() const
return ls_meta_.get_ls_create_status();
}
bool ObLS::is_create_committed() const
{
return ObInnerLSStatus::COMMITTED == ls_meta_.get_ls_create_status();
}
bool ObLS::is_need_gc() const
{
int ret = OB_SUCCESS;