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

B Bug when loading wrong history records

(cherry picked from commit a7da860064553b8dac2b31f667ef8176e51b771e)
This commit is contained in:
Ruben S. Montero 2017-08-09 11:06:01 +02:00
parent 55d82ac237
commit d2f8a90bf5

View File

@ -517,6 +517,8 @@ int VirtualMachine::select(SqlDB * db)
History * hp;
hp = new History(oid, i);
history_records[i] = hp;
rc = hp->select(db);
if ( rc != 0)
@ -524,8 +526,6 @@ int VirtualMachine::select(SqlDB * db)
goto error_previous_history;
}
history_records[i] = hp;
if ( i == last_seq )
{
history = hp;