diff src/core/ngx_hash.h @ 3510:4c70bbdfd076

allow hash key values more than 255 bytes, it does not actually increase mean hash element size, because due to aligning a byte after key is not used anyway in 3/4 cases on 32-bit platforms and in 7/8 cases on 64-bit platforms
author Igor Sysoev <igor@sysoev.ru>
date Thu, 13 May 2010 12:52:45 +0000
parents 7a7c9e9024dd
children d620f497c50f
line wrap: on
line diff
--- a/src/core/ngx_hash.h
+++ b/src/core/ngx_hash.h
@@ -14,7 +14,7 @@
 
 typedef struct {
     void             *value;
-    u_char            len;
+    u_short           len;
     u_char            name[1];
 } ngx_hash_elt_t;