Browse Source

refs: MW-322 * generating fake trx id for CTAS, requires trx_sys mutex protection to be safe for concurrent CTAS processors

pull/458/head
sjaakola 9 years ago
committed by Jan Lindström
parent
commit
0ddf32c840
  1. 2
      storage/innobase/handler/ha_innodb.cc
  2. 2
      storage/xtradb/handler/ha_innodb.cc

2
storage/innobase/handler/ha_innodb.cc

@ -17945,7 +17945,7 @@ wsrep_fake_trx_id(
mutex_enter(&trx_sys->mutex);
trx_id_t trx_id = trx_sys_get_new_trx_id();
mutex_exit(&trx_sys->mutex);
WSREP_DEBUG("innodb fake trx id: %lu thd: %s", trx_id, wsrep_thd_query(thd));
(void *)wsrep_ws_handle_for_trx(wsrep_thd_ws_handle(thd), trx_id);
}

2
storage/xtradb/handler/ha_innodb.cc

@ -19247,7 +19247,7 @@ wsrep_fake_trx_id(
mutex_enter(&trx_sys->mutex);
trx_id_t trx_id = trx_sys_get_new_trx_id();
mutex_exit(&trx_sys->mutex);
WSREP_DEBUG("innodb fake trx id: %lu thd: %s", trx_id, wsrep_thd_query(thd));
(void *)wsrep_ws_handle_for_trx(wsrep_thd_ws_handle(thd), trx_id);
}

Loading…
Cancel
Save