Commit 1f0cd91
BUG/MINOR: startup: set HAPROXY_CFGFILES in read_cfg
load_cfg() is called only once before the first reading of the configuration
(we parse here only the global section). Then, before reading the rest of the
sections (second call of read_cfg()), we call clean_env(). As
HAPROXY_CFGFILES is set in load_cfg(), which is called only once, clean_env()
erases it. Thus, it's not longer shown in "show env" output.
To fix this, let's set HAPROXY_CFGFILES in read_cfg(). Like this in
master-worker mode it is set for master and for worker processes, as it was
before the refactoring.
This fix doesn't need to be backported as related to the latest master-worker
architecture change.1 parent d5d41de commit 1f0cd91
1 file changed
+25
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
1184 | 1183 | | |
1185 | 1184 | | |
1186 | 1185 | | |
| |||
1192 | 1191 | | |
1193 | 1192 | | |
1194 | 1193 | | |
1195 | | - | |
| 1194 | + | |
1196 | 1195 | | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | 1196 | | |
1205 | 1197 | | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | 1198 | | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | 1199 | | |
1214 | 1200 | | |
1215 | 1201 | | |
| |||
1221 | 1207 | | |
1222 | 1208 | | |
1223 | 1209 | | |
| 1210 | + | |
1224 | 1211 | | |
1225 | 1212 | | |
1226 | 1213 | | |
| |||
1237 | 1224 | | |
1238 | 1225 | | |
1239 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1240 | 1238 | | |
1241 | 1239 | | |
1242 | | - | |
| 1240 | + | |
1243 | 1241 | | |
1244 | 1242 | | |
1245 | 1243 | | |
1246 | 1244 | | |
1247 | 1245 | | |
1248 | | - | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
| |||
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | | - | |
| 1263 | + | |
1264 | 1264 | | |
1265 | 1265 | | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1266 | 1269 | | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1267 | 1274 | | |
1268 | 1275 | | |
1269 | 1276 | | |
| |||
0 commit comments