1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-13393 SEQUENCE related crash when running concurrent I_S.TABLES and FLUSH queries

Problem was that SEQUENCE::table was shared among threads, which caused
several threads to use the same object at the same time.
This commit is contained in:
Monty
2017-08-07 20:49:56 +03:00
parent cf9e0bf3e6
commit 213af08d99
2 changed files with 8 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ public:
SEQUENCE();
~SEQUENCE();
int read_initial_values(TABLE *table);
int read_stored_values();
int read_stored_values(TABLE *table);
void write_lock(TABLE *table);
void write_unlock(TABLE *table);
void read_lock(TABLE *table);
@@ -132,7 +132,6 @@ public:
seq_init initialized;
private:
TABLE *table;
mysql_rwlock_t mutex;
};