diff options
author | 2016-09-23 08:35:58 -0700 | |
---|---|---|
committer | 2016-09-23 08:35:58 -0700 | |
commit | ee70ca67c15b7b36fbd12a492d5094adc1344fb6 (patch) | |
tree | 7e43be67500b27951f97a759de4e2a3841aa034d | |
parent | 3fe56b52de02079eea98590adcc852dc9e3aaffd (diff) |
Fix list mixup
-rw-r--r-- | src/core/lib/iomgr/buffer_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/buffer_pool.c b/src/core/lib/iomgr/buffer_pool.c index a6824f9432..46dd6d9ce1 100644 --- a/src/core/lib/iomgr/buffer_pool.c +++ b/src/core/lib/iomgr/buffer_pool.c @@ -210,8 +210,8 @@ static bool bpscavenge(grpc_exec_ctx *exec_ctx, grpc_buffer_pool *buffer_pool) { static bool bpreclaim(grpc_exec_ctx *exec_ctx, grpc_buffer_pool *buffer_pool, bool destructive) { if (buffer_pool->reclaiming) return true; - grpc_bulist list = destructive ? GRPC_BULIST_RECLAIMER_BENIGN - : GRPC_BULIST_RECLAIMER_DESTRUCTIVE; + grpc_bulist list = destructive ? GRPC_BULIST_RECLAIMER_DESTRUCTIVE + : GRPC_BULIST_RECLAIMER_BENIGN; grpc_buffer_user *buffer_user = bulist_pop(buffer_pool, list); if (buffer_user == NULL) return false; buffer_pool->reclaiming = true; |