MySQL 8.0.39
Source Code Documentation
discrete_interval.h File Reference
#include <limits.h>
#include "my_dbug.h"
#include "my_inttypes.h"

Go to the source code of this file.

Classes

class  Discrete_interval
 
class  Discrete_intervals_list
 List of Discrete_interval objects. More...
 

Macros

#define DISCRETE_INTERVAL_LIST_HAS_MAX_ONE_ELEMENT   1
 Discrete_intervals_list objects are used to remember the intervals of autoincrement values that have been used by the current INSERT statement, so that the values can be written to the binary log. More...
 

Macro Definition Documentation

◆ DISCRETE_INTERVAL_LIST_HAS_MAX_ONE_ELEMENT

#define DISCRETE_INTERVAL_LIST_HAS_MAX_ONE_ELEMENT   1

Discrete_intervals_list objects are used to remember the intervals of autoincrement values that have been used by the current INSERT statement, so that the values can be written to the binary log.

However, the binary log can currently only store the beginning of the first interval (because WL#3404 is not yet implemented). Hence, it is currently not necessary to store anything else than the first interval, in the list. When WL#3404 is implemented, we should change the '# define' below.