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

MDEV-14092 NEXTVAL fails on slave

The problem was that the code in replication didn't distinguish between a
setval() failing because the stored sequence number was bigger than the
current (should have been ignored) and a failure from the storage engine.
This commit is contained in:
Michael Widenius
2017-10-19 13:22:38 +03:00
parent e156db85a7
commit 211f9eea60
5 changed files with 260 additions and 12 deletions

View File

@@ -105,8 +105,8 @@ public:
all_values_used= 0;
}
longlong next_value(TABLE *table, bool second_round, int *error);
bool set_value(TABLE *table, longlong next_value, ulonglong round_arg,
bool is_used);
int set_value(TABLE *table, longlong next_value, ulonglong round_arg,
bool is_used);
longlong increment_value(longlong value)
{
if (real_increment > 0)