Skip to content

Commit

Permalink
B OpenNebula#5081: oned monitoring API bug with PostgreSQL (OpenNebul…
Browse files Browse the repository at this point in the history
…a#5087)

Signed-off-by: Romanov Andrey Grigorievich <[email protected]>

Co-authored-by: Romanov Andrey Grigorievich <[email protected]>
  • Loading branch information
2 people authored and atodorov-storpool committed Nov 24, 2020
1 parent 2305581 commit 14b7402
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vm/VirtualMachinePool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,11 @@ int VirtualMachinePool::dump_monitoring(

cmd << "SELECT " << one_db::vm_monitor_table << ".body FROM "
<< one_db::vm_monitor_table
<< " INNER JOIN " << one_db::vm_table
<< " WHERE vmid = oid";
<< " INNER JOIN " << one_db::vm_table << " ON vmid = oid";

if ( !where.empty() )
{
cmd << " AND " << where;
cmd << " WHERE " << where;
}

cmd << " ORDER BY vmid, " << one_db::vm_monitor_table << ".last_poll;";
Expand Down

0 comments on commit 14b7402

Please sign in to comment.