]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: the metavariables in frontends-related config won't be expanded 19689/head
authorroot <root@TENCENT64.site>
Tue, 26 Dec 2017 10:11:47 +0000 (18:11 +0800)
committerroot <root@TENCENT64.site>
Tue, 26 Dec 2017 12:14:40 +0000 (20:14 +0800)
commit5cded0a64f111cdf8ea8953f34418c482603c31b
treeefe5da35ce6365fdae4821713ca579de4cb55898
parent63240c08722445cf457d0e61e78821ca95b3863d
rgw: the metavariables in frontends-related config won't be expanded

When using metavariables in frontends-related config, I found that metavariables won't be expanded. Such as:
the `name` variable won't be expanded.
```
[client.rgw]
rgw frontends = civetweb port=8000 access_log_file=/path/$name.access.log
```
The reason is as follows:

In `rgw_main.cc/main()` function, program uses frontends-related config before the `expand_all_meta` function call that is called in the `global_init` function.

Signed-off-by: chnmagnus chnmagnus@qq.com
src/rgw/rgw_main.cc