Skip to content
Snippets Groups Projects
Commit de76cdbc authored by David G. Quintas's avatar David G. Quintas Committed by GitHub
Browse files

Merge pull request #8565 from sreecha/linux_porta_failures

resource_quota.c: Fix compiler errors in gcc4.4 and 4.6
parents 5e257b96 894db55a
Branches
Tags
No related merge requests found
...@@ -166,8 +166,11 @@ static void rq_step(grpc_exec_ctx *exec_ctx, void *rq, grpc_error *error) { ...@@ -166,8 +166,11 @@ static void rq_step(grpc_exec_ctx *exec_ctx, void *rq, grpc_error *error) {
do { do {
if (rq_alloc(exec_ctx, resource_quota)) goto done; if (rq_alloc(exec_ctx, resource_quota)) goto done;
} while (rq_reclaim_from_per_user_free_pool(exec_ctx, resource_quota)); } while (rq_reclaim_from_per_user_free_pool(exec_ctx, resource_quota));
rq_reclaim(exec_ctx, resource_quota, false) ||
rq_reclaim(exec_ctx, resource_quota, true); if (!rq_reclaim(exec_ctx, resource_quota, false)) {
rq_reclaim(exec_ctx, resource_quota, true);
}
done: done:
grpc_resource_quota_internal_unref(exec_ctx, resource_quota); grpc_resource_quota_internal_unref(exec_ctx, resource_quota);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment