[nginx] Core: bugfix for the ngx_slab_max_size case.

Maxim Dounin mdounin at mdounin.ru
Wed Jul 9 18:40:14 UTC 2014


details:   http://hg.nginx.org/nginx/rev/abdb027be9d5
branches:  
changeset: 5766:abdb027be9d5
user:      Jianjun Zheng <codeeply at gmail.com>
date:      Wed Jun 18 16:39:59 2014 +0800
description:
Core: bugfix for the ngx_slab_max_size case.

diffstat:

 src/core/ngx_slab.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/core/ngx_slab.c b/src/core/ngx_slab.c
--- a/src/core/ngx_slab.c
+++ b/src/core/ngx_slab.c
@@ -160,7 +160,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *p
     ngx_uint_t        i, slot, shift, map;
     ngx_slab_page_t  *page, *prev, *slots;
 
-    if (size >= ngx_slab_max_size) {
+    if (size > ngx_slab_max_size) {
 
         ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, ngx_cycle->log, 0,
                        "slab alloc: %uz", size);



More information about the nginx-devel mailing list