Comment 8 for bug 552420

Revision history for this message
Stewart Smith (stewart) wrote :

=== modified file 'plugin/embedded_innodb/embedded_innodb_engine.cc'
--- plugin/embedded_innodb/embedded_innodb_engine.cc 2010-04-27 13:04:21 +0000
+++ plugin/embedded_innodb/embedded_innodb_engine.cc 2010-04-27 23:05:12 +0000
@@ -1621,12 +1621,6 @@ int EmbeddedInnoDBCursor::rnd_init(bool)
 {
   ib_trx_t transaction;

- if(*get_trx(current_session) == NULL)
- {
- EmbeddedInnoDBEngine *innodb_engine= static_cast<EmbeddedInnoDBEngine*>(engine);
- innodb_engine->doStartTransaction(current_session, START_TRANS_NO_OPTIONS);
- }
-
   transaction= *get_trx(ha_session());

   ib_cursor_attach_trx(cursor, transaction);

and then run any ALTER TABLE on an embedded_innodb table. (test-run --suite=embedded_innodb should do it)