Commit 0c6ff122 authored by Marko Mäkelä's avatar Marko Mäkelä

Follow-up fix to MDEV-14477: Use proper std::map allocator

parent 12c977ca
...@@ -779,15 +779,19 @@ struct trx_lock_t { ...@@ -779,15 +779,19 @@ struct trx_lock_t {
bool start_stmt; bool start_stmt;
}; };
/** The first modification time of a table in a transaction */
typedef undo_no_t trx_mod_table_time_t;
/** Collection of persistent tables and their first modification /** Collection of persistent tables and their first modification
in a transaction. in a transaction.
We store pointers to the table objects in memory because We store pointers to the table objects in memory because
we know that a table object will not be destroyed while a transaction we know that a table object will not be destroyed while a transaction
that modified it is running. */ that modified it is running. */
typedef std::map< typedef std::map<
dict_table_t*, undo_no_t, dict_table_t*, trx_mod_table_time_t,
std::less<dict_table_t*>, std::less<dict_table_t*>,
ut_allocator<dict_table_t*> > trx_mod_tables_t; ut_allocator<std::pair<dict_table_t*, trx_mod_table_time_t> > >
trx_mod_tables_t;
/** The transaction handle /** The transaction handle
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment