summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-09-20 15:50:48 +0300
committerMax Romanov <max.romanov@nginx.com>2018-09-20 15:50:48 +0300
commit9f29ac9f3e85b34317ab68ae297dabc6c6ffa6ae (patch)
tree9cf07c3f1f34284c4235a764d4b331a5005858a1 /src
parenta2eca97e89f4898ca3f3287038e3757f4f778161 (diff)
downloadunit-9f29ac9f3e85b34317ab68ae297dabc6c6ffa6ae.tar.gz
unit-9f29ac9f3e85b34317ab68ae297dabc6c6ffa6ae.tar.bz2
Preserving inherited engine memory pool in controller process.
The pool is inherited from master process since changeset 854a1a440616.
Diffstat (limited to '')
-rw-r--r--src/nxt_controller.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 28f0425b..29838bd9 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -132,19 +132,11 @@ nxt_controller_start(nxt_task_t *task, void *data)
nxt_str_t *json;
nxt_runtime_t *rt;
nxt_conf_value_t *conf;
- nxt_event_engine_t *engine;
nxt_conf_validation_t vldt;
nxt_controller_init_t *init;
rt = task->thread->runtime;
- engine = task->thread->engine;
-
- engine->mem_pool = nxt_mp_create(4096, 128, 1024, 64);
- if (nxt_slow_path(engine->mem_pool == NULL)) {
- return NXT_ERROR;
- }
-
ret = nxt_http_fields_hash(&nxt_controller_fields_hash, rt->mem_pool,
nxt_controller_request_fields,
nxt_nitems(nxt_controller_request_fields));