]> git.kaiwu.me - nginx.git/commitdiff
Limit req: removed check for unknown limit_req_zone.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 20 Apr 2015 13:54:41 +0000 (16:54 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 20 Apr 2015 13:54:41 +0000 (16:54 +0300)
With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.

src/http/modules/ngx_http_limit_req_module.c

index 5d5cbe9440622a3ad0be320f44a7af835599ed70..9059ac37671f49d8569d32e75f7b24829d0502f5 100644 (file)
@@ -919,13 +919,6 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         return NGX_CONF_ERROR;
     }
 
-    if (shm_zone->data == NULL) {
-        ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                           "unknown limit_req_zone \"%V\"",
-                           &shm_zone->shm.name);
-        return NGX_CONF_ERROR;
-    }
-
     limits = lrcf->limits.elts;
 
     if (limits == NULL) {