diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-22 18:51:32 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-22 18:51:32 +0000 |
| commit | 410244e75da03ecb3aaab7e3d1c4ceeb40da293a (patch) | |
| tree | fb25fd70bfe46a636d39703e9c90f3dd21d80353 /include | |
| parent | ee705bb627975120a7813a44af8f4e674c551c91 (diff) | |
- housekeeper to delete hosts_groups entries (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1090 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
| -rw-r--r-- | include/db.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/db.c b/include/db.c index df3fa00e..a52203f0 100644 --- a/include/db.c +++ b/include/db.c @@ -645,6 +645,9 @@ void DBdelete_host(int hostid) } DBfree_result(result); + sprintf(sql,"delete from hosts_groups where hostid=%d", hostid); + DBexecute(sql); + sprintf(sql,"delete from hosts where hostid=%d", hostid); DBexecute(sql); |
