1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/storage
Marko Mäkelä fa2a74e08d MDEV-16136: Prevent wrong reuse in trx_reference()
If trx_free() and trx_create_low() were called while a call to
trx_reference() was pending, we could get a reference to a wrong
transaction object.

trx_reference(): Return NULL if the trx->id no longer matches.

lock_trx_release_locks(): Assign trx->id = 0, so that trx_reference()
will not return a reference to this object.

trx_cleanup_at_db_startup(): Assign trx->id = 0.

assert_trx_is_free(): Assert !trx->n_ref. Assert trx->id == 0,
now that it will be cleared as part of a transaction commit.
2018-08-16 05:54:11 +03:00
..
2018-06-21 23:47:39 +02:00
2018-06-12 18:55:27 +03:00
2018-06-21 23:47:39 +02:00
2018-06-21 23:47:39 +02:00
2018-06-21 23:47:39 +02:00
2018-06-21 23:47:39 +02:00
2018-08-02 08:19:57 +03:00
2018-08-02 08:19:57 +03:00
2018-04-24 09:39:45 +03:00
2018-05-10 13:01:42 +02:00
2018-05-29 16:52:12 +03:00
2018-06-21 23:47:39 +02:00
2018-08-03 13:02:56 +03:00