1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fixed crash with SEQUENCE when using REPAIR

This commit is contained in:
Monty
2017-05-02 19:23:00 +03:00
parent c619fbeafe
commit 276b0c8ef0
5 changed files with 86 additions and 7 deletions

View File

@@ -66,6 +66,7 @@ public:
class SEQUENCE :public sequence_definition
{
public:
enum seq_init { SEQ_UNINTIALIZED, SEQ_IN_PREPARE, SEQ_READY_TO_USE };
SEQUENCE();
~SEQUENCE();
int read_initial_values(TABLE *table);
@@ -87,8 +88,9 @@ public:
}
longlong next_value(TABLE *table, bool second_round, int *error);
bool initialized; // If row has been read
bool all_values_used;
seq_init initialized;
private:
TABLE *table;
mysql_mutex_t mutex;