fix wait_leader time calculation in ob_ddl_service.cpp (#1739)

This commit is contained in:
zhaoyiping 2023-12-11 09:45:40 +08:00 committed by GitHub
parent 28a73eb8a3
commit 9cce973b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23186,7 +23186,7 @@ int ObDDLService::create_tenant_sys_ls(
LOG_WARN("fail to wait election leader", KR(ret), K(tenant_id), K(SYS_LS), K(timeout));
}
int64_t wait_leader_end = ObTimeUtility::current_time();
wait_leader = wait_leader_end - wait_leader_end;
wait_leader = wait_leader_end - wait_leader_start;
}
}
if (is_meta_tenant(tenant_id)) {