diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-12-25 16:24:54 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-12-25 16:24:54 +0300 |
commit | 392abd03e5cbb4f6608403364721b5c1f26d9f06 (patch) | |
tree | a9ca9826e8ff1ba48e26ab03c6ebb5157a5d4d6d /src/nxt_router.c | |
parent | 4e403c17da98d727c12b1e0f742d8911f89e43d8 (diff) | |
download | unit-392abd03e5cbb4f6608403364721b5c1f26d9f06.tar.gz unit-392abd03e5cbb4f6608403364721b5c1f26d9f06.tar.bz2 |
Restoring apps in case of reconfiguration error.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r-- | src/nxt_router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index e29dc572..7b52876a 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -705,6 +705,7 @@ nxt_router_temp_conf(nxt_task_t *task) nxt_queue_init(&tmcf->updating); nxt_queue_init(&tmcf->pending); nxt_queue_init(&tmcf->creating); + nxt_queue_init(&tmcf->apps); nxt_queue_init(&tmcf->previous); @@ -834,6 +835,8 @@ nxt_router_conf_error(nxt_task_t *task, nxt_router_temp_conf_t *tmcf) nxt_queue_add(&router->sockets, &tmcf->keeping); nxt_queue_add(&router->sockets, &tmcf->deleting); + nxt_queue_add(&router->apps, &tmcf->previous); + // TODO: new engines and threads nxt_mp_destroy(tmcf->conf->mem_pool); |