mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
addresses #1078
small changes to get savepoint code to compile git-svn-id: file:///svn/mysql/tokudb-engine/src@5647 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
728227237a
commit
c86dc3f490
1 changed files with 3 additions and 3 deletions
|
@ -522,7 +522,7 @@ static int tokudb_savepoint(handlerton * hton, THD * thd, void *savepoint) {
|
|||
TOKUDB_DBUG_ENTER("tokudb_savepoint");
|
||||
int error;
|
||||
DB_TXN **save_txn = (DB_TXN **) savepoint;
|
||||
tokudb_trx_data *trx = (tokudb_trx_data *) thd->ha_data[hton->slot];
|
||||
tokudb_trx_data *trx = (tokudb_trx_data *) thd_data_get(thd, hton->slot);
|
||||
if (!(error = db_env->txn_begin(db_env, trx->sp_level, save_txn, 0))) {
|
||||
trx->sp_level = *save_txn;
|
||||
}
|
||||
|
@ -533,7 +533,7 @@ static int tokudb_rollback_to_savepoint(handlerton * hton, THD * thd, void *save
|
|||
TOKUDB_DBUG_ENTER("tokudb_rollback_to_savepoint");
|
||||
int error;
|
||||
DB_TXN *parent, **save_txn = (DB_TXN **) savepoint;
|
||||
tokudb_trx_data *trx = (tokudb_trx_data *) thd->ha_data[hton->slot];
|
||||
tokudb_trx_data *trx = (tokudb_trx_data *) thd_data_get(thd, hton->slot);
|
||||
parent = (*save_txn)->parent;
|
||||
if (!(error = (*save_txn)->abort(*save_txn))) {
|
||||
trx->sp_level = parent;
|
||||
|
@ -546,7 +546,7 @@ static int tokudb_release_savepoint(handlerton * hton, THD * thd, void *savepoin
|
|||
TOKUDB_DBUG_ENTER("tokudb_release_savepoint");
|
||||
int error;
|
||||
DB_TXN *parent, **save_txn = (DB_TXN **) savepoint;
|
||||
tokudb_trx_data *trx = (tokudb_trx_data *) thd->ha_data[hton->slot];
|
||||
tokudb_trx_data *trx = (tokudb_trx_data *) thd_data_get(thd, hton->slot);
|
||||
parent = (*save_txn)->parent;
|
||||
if (!(error = (*save_txn)->commit(*save_txn, 0))) {
|
||||
trx->sp_level = parent;
|
||||
|
|
Loading…
Reference in a new issue