Skip to content

Commit

Permalink
MDEV-6729: InnoDB: Failing assertion: state == TRX_STATE_NOT_STARTED in
Browse files Browse the repository at this point in the history
file trx0trx.ic line 60 

Problem was that trx might have not been started when we enter release
savepoint, this can happen when trx with savepoint is already aborted 
or when we try to release non-existing savepoint.
  • Loading branch information
Jan Lindström committed Sep 11, 2014
1 parent 3a91af9 commit c30a844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4088,6 +4088,7 @@ innobase_release_savepoint(
DBUG_ASSERT(hton == innodb_hton_ptr);

trx = check_trx_exists(thd);
trx_start_if_not_started(trx);

/* TODO: use provided savepoint data area to store savepoint data */

Expand Down
1 change: 1 addition & 0 deletions storage/xtradb/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4657,6 +4657,7 @@ innobase_release_savepoint(
DBUG_ASSERT(hton == innodb_hton_ptr);

trx = check_trx_exists(thd);
trx_start_if_not_started(trx);

/* TODO: use provided savepoint data area to store savepoint data */

Expand Down

0 comments on commit c30a844

Please sign in to comment.