[ZBX-14855] misleading process type assignment Created: 2018 Sep 15 Updated: 2024 Apr 10 Resolved: 2018 Dec 11 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Proxy (P), Server (S) |
| Affects Version/s: | 3.4.14, 4.0.0beta2 |
| Fix Version/s: | 3.0.25rc1, 4.0.3rc1, 4.2.0alpha2, 4.2 (plan) |
| Type: | Problem report | Priority: | Trivial |
| Reporter: | Mikhail Makurov | Assignee: | Andrejs Sitals (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | codequality | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Team: | |
| Sprint: | Sprint 46, Nov 2018, Sprint 47, Dec 2018 |
| Story Points: | 0.125 |
| Description |
|
While playing around with sources and adding new type of poller i found a misconcept in the code wich i suggest to fix: On server.c there is a switch which assigns type of poller depending of type of process: poller_type=ZBX_PROCESS_TYPE_UNREACHABLE; do assignement of correct poller type: poller_type = ZBX_POLLER_TYPE_UNREACHABLE |
| Comments |
| Comment by Andris Mednis [ 2018 Nov 28 ] |
|
Thanks for pointing to it!
Ok, I got it wrong. <asitals> Values that are assigned to poller_type are actually passed directly to DC*() functions and compared to ZBX_POLLER_TYPE_* constants. andris Thanks, Mikhail and you are right! |
| Comment by Andris Mednis [ 2018 Nov 30 ] |
|
Succesfully tested. |
| Comment by Andrejs Sitals (Inactive) [ 2018 Dec 03 ] |
|
Available in versions:
|