summaryrefslogtreecommitdiff
path: root/sql/sql_sequence.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-08-07 20:49:56 +0300
committerMonty <monty@mariadb.org>2017-08-07 21:22:21 +0300
commit213af08d9951c340e0db9e3d2802aa112dc47b53 (patch)
tree200d7d6d0eae91967f53b698190fdb1d08638ecf /sql/sql_sequence.h
parentcf9e0bf3e6d266f9b56fd13ceef82d66b1d92a46 (diff)
downloadmariadb-git-213af08d9951c340e0db9e3d2802aa112dc47b53.tar.gz
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.
Diffstat (limited to 'sql/sql_sequence.h')
-rw-r--r--sql/sql_sequence.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_sequence.h b/sql/sql_sequence.h
index 1dc777657d5..b61e4ffe40d 100644
--- a/sql/sql_sequence.h
+++ b/sql/sql_sequence.h
@@ -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;
};