[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -40,11 +40,7 @@ static const ObPLInterface OB_PL_INTERFACE[INTERFACE_END +1] =
void *ObPLInterfaceService::get_entry(ObString &name) const
{
int64_t idx = get_type(name);
void *entry_res = NULL;
if (idx >= 0 && idx < sizeof(OB_PL_INTERFACE)/sizeof(ObPLInterface)) {
entry_res = OB_PL_INTERFACE[idx].entry;
}
return entry_res;
return OB_PL_INTERFACE[idx].entry;
}
int ObPLInterfaceService::init()