I checked the latest bzr code and looks like adding '!trx->fake_changes' to the if condition below should fix it. However, the second row_upd_index_entry_sys_field may be required, so adding another if condition based on trx->fake_changes for first row_upd_index_entry_sys_field may be better.
I checked the latest bzr code and looks like adding '!trx-> fake_changes' to the if condition below should fix it. However, the second row_upd_ index_entry_ sys_field may be required, so adding another if condition based on trx->fake_changes for first row_upd_ index_entry_ sys_field may be better.
if (!(flags & BTR_KEEP_SYS_FLAG)) { index_entry_ sys_field( new_entry, index, DATA_ROLL_PTR,
roll_ ptr); index_entry_ sys_field( new_entry, index, DATA_TRX_ID,
trx- >id);
row_upd_
row_upd_
}