fix: wrong use ret in for loop

This commit is contained in:
obdev 2023-04-10 06:45:43 +00:00 committed by ob-robot
parent ce45c64bf6
commit 969b497aa3

View File

@ -320,7 +320,8 @@ int ObTenantConfigMgr::del_tenant_config(uint64_t tenant_id)
} else {
static const int DEL_TRY_TIMES = 30;
static const int64_t TIME_SLICE_PERIOD = 10000;
for (int i = 0, ret = OB_EAGAIN; i < DEL_TRY_TIMES; ++i) {
ret = OB_EAGAIN;
for (int i = 0; i < DEL_TRY_TIMES; ++i) {
if (config->is_ref_clear()) {
ret = OB_SUCCESS;
break;