[BUG.FIX] fix whitescan issues

This commit is contained in:
Tyshawn
2023-02-06 13:13:27 +08:00
committed by ob-robot
parent 665e7984d5
commit a09570cef7
2 changed files with 7 additions and 2 deletions

View File

@ -1659,6 +1659,12 @@ int ObTmpFileStore::get_store(const uint64_t tenant_id, ObTmpTenantFileStoreHand
}
}
}
if (OB_SUCC(ret)) {
if (OB_UNLIKELY(!handle.is_valid())) {
ret = OB_ERR_UNEXPECTED;
STORAGE_LOG(WARN, "unexpected error, invalid tenant file store handle", K(ret), K(handle));
}
}
return ret;
}