mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 09:21:35 -04:00
MINOR: sample: make RQ/RS stats available everywhere
Sample fetch functions working on the request/response stats were marked as being only compatible with the log phase. This is a mistake because by definitions, stats can be consulted anywhere from the moment they start to appear. It's only that they are valid as far as the logs. At the moment, no sample fetch function depends on RQFIN, and only res.timer.data depends on RSFIN. But this will be needed to relax certain sample fetch functions (and will need to be backported along with a few other patches).
This commit is contained in:
parent
e51be30f78
commit
6df10d0802
1 changed files with 21 additions and 21 deletions
42
src/sample.c
42
src/sample.c
|
|
@ -266,39 +266,39 @@ const unsigned int fetch_cap[SMP_SRC_ENTRIES] = {
|
|||
SMP_VAL___________ | SMP_VAL_BE_CHK_RUL | SMP_VAL___________ |
|
||||
SMP_VAL___________ ),
|
||||
|
||||
[SMP_SRC_RQFIN] = (SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
[SMP_SRC_RQFIN] = (SMP_VAL___________ | SMP_VAL___________ | SMP_VAL_FE_REQ_CNT |
|
||||
SMP_VAL_FE_HRQ_HDR | SMP_VAL_FE_HRQ_BDY | SMP_VAL_FE_SET_BCK |
|
||||
SMP_VAL_BE_REQ_CNT | SMP_VAL_BE_HRQ_HDR | SMP_VAL_BE_HRQ_BDY |
|
||||
SMP_VAL_BE_SET_SRV | SMP_VAL_BE_SRV_CON | SMP_VAL_BE_RES_CNT |
|
||||
SMP_VAL_BE_HRS_HDR | SMP_VAL_BE_HRS_BDY | SMP_VAL_BE_STO_RUL |
|
||||
SMP_VAL_FE_RES_CNT | SMP_VAL_FE_HRS_HDR | SMP_VAL_FE_HRS_BDY |
|
||||
SMP_VAL_FE_LOG_END | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ ),
|
||||
|
||||
[SMP_SRC_RSFIN] = (SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL_BE_SET_SRV | SMP_VAL_BE_SRV_CON | SMP_VAL_BE_RES_CNT |
|
||||
SMP_VAL_BE_HRS_HDR | SMP_VAL_BE_HRS_BDY | SMP_VAL_BE_STO_RUL |
|
||||
SMP_VAL_FE_RES_CNT | SMP_VAL_FE_HRS_HDR | SMP_VAL_FE_HRS_BDY |
|
||||
SMP_VAL_FE_LOG_END | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ ),
|
||||
|
||||
[SMP_SRC_TXFIN] = (SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
[SMP_SRC_TXFIN] = (SMP_VAL___________ | SMP_VAL___________ | SMP_VAL_FE_REQ_CNT |
|
||||
SMP_VAL_FE_HRQ_HDR | SMP_VAL_FE_HRQ_BDY | SMP_VAL_FE_SET_BCK |
|
||||
SMP_VAL_BE_REQ_CNT | SMP_VAL_BE_HRQ_HDR | SMP_VAL_BE_HRQ_BDY |
|
||||
SMP_VAL_BE_SET_SRV | SMP_VAL_BE_SRV_CON | SMP_VAL_BE_RES_CNT |
|
||||
SMP_VAL_BE_HRS_HDR | SMP_VAL_BE_HRS_BDY | SMP_VAL_BE_STO_RUL |
|
||||
SMP_VAL_FE_RES_CNT | SMP_VAL_FE_HRS_HDR | SMP_VAL_FE_HRS_BDY |
|
||||
SMP_VAL_FE_LOG_END | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ ),
|
||||
|
||||
[SMP_SRC_SSFIN] = (SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ | SMP_VAL___________ | SMP_VAL___________ |
|
||||
[SMP_SRC_SSFIN] = (SMP_VAL_FE_CON_ACC | SMP_VAL_FE_SES_ACC | SMP_VAL_FE_REQ_CNT |
|
||||
SMP_VAL_FE_HRQ_HDR | SMP_VAL_FE_HRQ_BDY | SMP_VAL_FE_SET_BCK |
|
||||
SMP_VAL_BE_REQ_CNT | SMP_VAL_BE_HRQ_HDR | SMP_VAL_BE_HRQ_BDY |
|
||||
SMP_VAL_BE_SET_SRV | SMP_VAL_BE_SRV_CON | SMP_VAL_BE_RES_CNT |
|
||||
SMP_VAL_BE_HRS_HDR | SMP_VAL_BE_HRS_BDY | SMP_VAL_BE_STO_RUL |
|
||||
SMP_VAL_FE_RES_CNT | SMP_VAL_FE_HRS_HDR | SMP_VAL_FE_HRS_BDY |
|
||||
SMP_VAL_FE_LOG_END | SMP_VAL___________ | SMP_VAL___________ |
|
||||
SMP_VAL___________ ),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue