Mercurial > hg > nginx
comparison src/core/ngx_hash.c @ 2149:deaa4cabecdc
update debug logging
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 21:51:36 +0000 |
parents | 7a7c9e9024dd |
children | febb71974a35 |
comparison
equal
deleted
inserted
replaced
2148:071bc0fc1459 | 2149:deaa4cabecdc |
---|---|
85 #if 0 | 85 #if 0 |
86 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "key:\"%ui\"", key); | 86 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "key:\"%ui\"", key); |
87 #endif | 87 #endif |
88 | 88 |
89 value = ngx_hash_find(&hwc->hash, key, &name[n], len - n); | 89 value = ngx_hash_find(&hwc->hash, key, &name[n], len - n); |
90 | |
91 #if 0 | |
92 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "value:\"%p\"", value); | |
93 #endif | |
90 | 94 |
91 if (value) { | 95 if (value) { |
92 | 96 |
93 /* | 97 /* |
94 * the 2 low bits of value have the special meaning: | 98 * the 2 low bits of value have the special meaning: |
567 | 571 |
568 wdc = (ngx_hash_wildcard_t *) h.hash; | 572 wdc = (ngx_hash_wildcard_t *) h.hash; |
569 | 573 |
570 if (names[n].key.len == len) { | 574 if (names[n].key.len == len) { |
571 wdc->value = names[n].value; | 575 wdc->value = names[n].value; |
572 #if 0 | |
573 ngx_log_error(NGX_LOG_ALERT, hinit->pool->log, 0, | |
574 "wdc: \"%V\"", wdc->value); | |
575 #endif | |
576 } | 576 } |
577 | 577 |
578 name->value = (void *) ((uintptr_t) wdc | (dot ? 1 : 3)); | 578 name->value = (void *) ((uintptr_t) wdc | (dot ? 1 : 3)); |
579 } | 579 } |
580 } | 580 } |