[ZBX-5595] The "housekeeper" table shouldn't be updated when deleting a discovery rule or an item prototype Created: 2012 Sep 19  Updated: 2017 May 30  Resolved: 2012 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.2
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Minor
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When deleting an discovery rule these SQL requests are executed:

...
SQL (0.000846): INSERT INTO housekeeper (tablename,field,value,housekeeperid) VALUES ('trends','itemid','24294','2192')
CAPIObject->delete() > CAPIObject>__call() > czbxrpc::call() -> czbxrpc::callAPI() -> call_user_func() -> CDiscoveryRule>delete() -> DB::insert() -> DBexecute()

SQL (0.0009): INSERT INTO housekeeper (tablename,field,value,housekeeperid) VALUES ('trends_uint','itemid','24294','2193')
CAPIObject->delete() > CAPIObject>__call() > czbxrpc::call() -> czbxrpc::callAPI() -> call_user_func() -> CDiscoveryRule>delete() -> DB::insert() -> DBexecute()
...

24294 - itemid of the discovery rule.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Sep 19 ]

TESTED.

Comment by Alexander Vladishev [ 2012 Oct 06 ]

Fixed in pre-2.0.4 r30574 and pre-2.1.0 (trunk) r30575.

Generated at Sat Apr 27 02:39:40 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.