Mercurial > hg > nginx
comparison src/mysql/ngx_http_mysql_test.c @ 2049:2a92804f4109
*) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Jun 2008 15:00:30 +0000 |
parents | fe11e2a3946d |
children | f0d596e84634 |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
127 return; | 127 return; |
128 } | 128 } |
129 | 129 |
130 m->query.len = NGX_MYSQL_CMDPKT_LEN + ngx_mysql_command_query.len; | 130 m->query.len = NGX_MYSQL_CMDPKT_LEN + ngx_mysql_command_query.len; |
131 | 131 |
132 m->query.data = ngx_palloc(r->pool, m->query.len); | 132 m->query.data = ngx_pnalloc(r->pool, m->query.len); |
133 if (m->query.data == NULL) { | 133 if (m->query.data == NULL) { |
134 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 134 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
135 return; | 135 return; |
136 } | 136 } |
137 | 137 |