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:
parent
55d82ac237
commit
d2f8a90bf5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user