Comment 6 for bug 1225237

Revision history for this message
Roel Van de Paar (roel11) wrote :

Though this bug was never present in a release, it was not invalid. The patch for this was;

=== modified file 'Percona-Server/storage/innobase/btr/btr0cur.cc'
--- Percona-Server/storage/innobase/btr/btr0cur.cc 2013-09-13 06:51:47 +0000
+++ Percona-Server/storage/innobase/btr/btr0cur.cc 2013-09-15 09:00:41 +0000
@@ -1475,7 +1475,8 @@
                        dtuple_convert_back_big_rec(index, entry, big_rec_vec);
                }

- if (err == DB_FAIL && thr_get_trx(thr)->fake_changes) {
+ if (err == DB_FAIL && thr && thr_get_trx(thr)
+ && thr_get_trx(thr)->fake_changes) {
                        fprintf(stderr, "btr_cur_optimistic_insert returning "
                                "DB_FAIL\n");
                }