|
@@ -4020,13 +4020,11 @@ retry:
|
|
|
if (pool->quota_used++ >= pool->quota) {
|
|
if (pool->quota_used++ >= pool->quota) {
|
|
|
pool->quota_used = 0;
|
|
pool->quota_used = 0;
|
|
|
pool = NULL;
|
|
pool = NULL;
|
|
|
- if (++rotating_pool >= total_pools)
|
|
|
|
|
- rotating_pool = 0;
|
|
|
|
|
- continue;
|
|
|
|
|
- }
|
|
|
|
|
- if (!pool_unworkable(pool))
|
|
|
|
|
|
|
+ } else if (!pool_unworkable(pool))
|
|
|
break;
|
|
break;
|
|
|
pool = NULL;
|
|
pool = NULL;
|
|
|
|
|
+ if (++rotating_pool >= total_pools)
|
|
|
|
|
+ rotating_pool = 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* If there are no alive pools with quota, choose according to
|
|
/* If there are no alive pools with quota, choose according to
|