delete duplicate error logging
Igor Sysoev
13 years ago
223 | 223 |
node = ngx_slab_alloc_locked(ctx->shpool, n);
|
224 | 224 |
if (node == NULL) {
|
225 | 225 |
ngx_shmtx_unlock(&ctx->shpool->mutex);
|
226 | |
|
227 | |
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
|
228 | |
"could not allocate memory in zone \"%V\"",
|
229 | |
&lrcf->shm_zone->name);
|
230 | |
|
231 | 226 |
return NGX_HTTP_SERVICE_UNAVAILABLE;
|
232 | 227 |
}
|
233 | 228 |
}
|
209 | 209 |
node = ngx_slab_alloc_locked(shpool, n);
|
210 | 210 |
if (node == NULL) {
|
211 | 211 |
ngx_shmtx_unlock(&shpool->mutex);
|
212 | |
|
213 | |
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
|
214 | |
"could not allocate memory in zone \"%V\"",
|
215 | |
&lzcf->shm_zone->name);
|
216 | |
|
217 | 212 |
return NGX_HTTP_SERVICE_UNAVAILABLE;
|
218 | 213 |
}
|
219 | 214 |
|