1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #: fix minor bug (#245)

This commit is contained in:
Christian González 2020-09-24 18:38:06 +02:00 committed by GitHub
parent e099655765
commit 9ddd94e989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ int HookLog::dump_log(std::string &xml_log)
int HookLog::drop(SqlDB *db, const int hook_id)
{
ostringstream oss;
oss << "DELETE FROM " << table << " WHERE hkid =" << hook_id;
return db->exec_wr(oss);
@ -164,7 +164,7 @@ int HookLog::add(int hkid, int hkrc, std::string &xml_result)
cb.set_callback(&query_output);
oss << "SELECT coalesce(MAX(exeid), -1), COUNT(*) FROM " << one_db::hook_log_table << " WHERE hkid = " << hkid;
oss << "SELECT coalesce(MAX(exeid), -1), COUNT(*) FROM " << table << " WHERE hkid = " << hkid;
int rc = db->exec_rd(oss, &cb);