From d2f8a90bf57894deb8ed558db247c4767462a564 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 9 Aug 2017 11:06:01 +0200 Subject: [PATCH] B Bug when loading wrong history records (cherry picked from commit a7da860064553b8dac2b31f667ef8176e51b771e) --- src/vm/VirtualMachine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm/VirtualMachine.cc b/src/vm/VirtualMachine.cc index 15a176b480..c588171a46 100644 --- a/src/vm/VirtualMachine.cc +++ b/src/vm/VirtualMachine.cc @@ -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;