diff options
author | Zhidao HONG <z.hong@f5.com> | 2021-10-09 10:44:31 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2021-10-09 10:44:31 +0800 |
commit | 5fa5b1464f2a0623bb7ee7c68ff6f9d18e744ed4 (patch) | |
tree | c21804dcbcf7ad1294e22b43c2a350758c6ffe7f /src/nxt_runtime.c | |
parent | af283833dd019ed48970abb740131fb1403da550 (diff) | |
download | unit-5fa5b1464f2a0623bb7ee7c68ff6f9d18e744ed4.tar.gz unit-5fa5b1464f2a0623bb7ee7c68ff6f9d18e744ed4.tar.bz2 |
Configuration: automatic migration to the new "share" behavior.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 8a86d38a..a30d332b 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -839,6 +839,21 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt) slash = "/"; } + ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%sversion%Z", + rt->state, slash); + if (nxt_slow_path(ret != NXT_OK)) { + return NXT_ERROR; + } + + rt->ver = (char *) file_name.start; + + ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s.tmp%Z", rt->ver); + if (nxt_slow_path(ret != NXT_OK)) { + return NXT_ERROR; + } + + rt->ver_tmp = (char *) file_name.start; + ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%sconf.json%Z", rt->state, slash); if (nxt_slow_path(ret != NXT_OK)) { |