[nginx] Modules compatibility: degradation fields now always present.

Ruslan Ermilov ru at nginx.com
Mon Oct 3 13:00:20 UTC 2016


details:   http://hg.nginx.org/nginx/rev/3b522d7a5b34
branches:  
changeset: 6717:3b522d7a5b34
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Mon Oct 03 15:58:19 2016 +0300
description:
Modules compatibility: degradation fields now always present.

There is no need to save these two bits as they are wasted anyway.
Removed NGX_HTTP_DEGRADATION from the signature accordingly.

diffstat:

 src/core/ngx_module.h           |  4 ----
 src/http/ngx_http_core_module.h |  2 --
 2 files changed, 0 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 57c8e12c460c -r 3b522d7a5b34 src/core/ngx_module.h
--- a/src/core/ngx_module.h	Mon Oct 03 15:58:16 2016 +0300
+++ b/src/core/ngx_module.h	Mon Oct 03 15:58:19 2016 +0300
@@ -170,11 +170,7 @@
 #define NGX_MODULE_SIGNATURE_26  "0"
 #endif
 
-#if (NGX_HTTP_DEGRADATION)
 #define NGX_MODULE_SIGNATURE_27  "1"
-#else
-#define NGX_MODULE_SIGNATURE_27  "0"
-#endif
 
 #if (NGX_HTTP_X_FORWARDED_FOR)
 #define NGX_MODULE_SIGNATURE_28  "1"
diff -r 57c8e12c460c -r 3b522d7a5b34 src/http/ngx_http_core_module.h
--- a/src/http/ngx_http_core_module.h	Mon Oct 03 15:58:16 2016 +0300
+++ b/src/http/ngx_http_core_module.h	Mon Oct 03 15:58:19 2016 +0300
@@ -327,10 +327,8 @@ struct ngx_http_core_loc_conf_s {
     unsigned      auto_redirect:1;
 #if (NGX_HTTP_GZIP)
     unsigned      gzip_disable_msie6:2;
-#if (NGX_HTTP_DEGRADATION)
     unsigned      gzip_disable_degradation:2;
 #endif
-#endif
 
     ngx_http_location_tree_node_t   *static_locations;
 #if (NGX_PCRE)



More information about the nginx-devel mailing list