Comment 6 for bug 890404

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

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)) {
  row_upd_index_entry_sys_field(new_entry, index, DATA_ROLL_PTR,
           roll_ptr);
  row_upd_index_entry_sys_field(new_entry, index, DATA_TRX_ID,
           trx->id);
 }