mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
M #: fix minor bug (#245)
This commit is contained in:
1 parent
e099655765
commit
9ddd94e989
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user