diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-10-28 18:25:24 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-10-28 18:25:24 -0700 |
commit | 894db55ab97aac8ea97602af0c06ba0031c3af97 (patch) | |
tree | fff8ebe9bb63a97efa90a88e50c303fc2640b9f7 /src/core | |
parent | 393526334c45816c7aa1dc87b1a61f72e5a752c5 (diff) |
Fix compiler errors in gcc4.4 and 4.6
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/resource_quota.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/resource_quota.c b/src/core/lib/iomgr/resource_quota.c index bfc905845d..e39cf28e35 100644 --- a/src/core/lib/iomgr/resource_quota.c +++ b/src/core/lib/iomgr/resource_quota.c @@ -166,8 +166,11 @@ static void rq_step(grpc_exec_ctx *exec_ctx, void *rq, grpc_error *error) { do { if (rq_alloc(exec_ctx, resource_quota)) goto done; } 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: grpc_resource_quota_internal_unref(exec_ctx, resource_quota); } |