mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Do not DBUG_PRINT uninitialized variable. This avoid false positive from runtime checks in debug builds (Windows).
This commit is contained in:
@@ -2621,8 +2621,7 @@ int handler::update_auto_increment()
|
|||||||
if (unlikely(nr == ULONGLONG_MAX))
|
if (unlikely(nr == ULONGLONG_MAX))
|
||||||
DBUG_RETURN(HA_ERR_AUTOINC_ERANGE);
|
DBUG_RETURN(HA_ERR_AUTOINC_ERANGE);
|
||||||
|
|
||||||
DBUG_PRINT("info",("auto_increment: %llu nb_reserved_values: %llu",
|
DBUG_PRINT("info",("auto_increment: %llu",nr));
|
||||||
nr, nb_reserved_values));
|
|
||||||
|
|
||||||
/* Store field without warning (Warning will be printed by insert) */
|
/* Store field without warning (Warning will be printed by insert) */
|
||||||
save_count_cuted_fields= thd->count_cuted_fields;
|
save_count_cuted_fields= thd->count_cuted_fields;
|
||||||
@@ -2640,6 +2639,8 @@ int handler::update_auto_increment()
|
|||||||
}
|
}
|
||||||
if (append)
|
if (append)
|
||||||
{
|
{
|
||||||
|
DBUG_PRINT("info",("nb_reserved_values: %llu",nb_reserved_values));
|
||||||
|
|
||||||
auto_inc_interval_for_cur_row.replace(nr, nb_reserved_values,
|
auto_inc_interval_for_cur_row.replace(nr, nb_reserved_values,
|
||||||
variables->auto_increment_increment);
|
variables->auto_increment_increment);
|
||||||
auto_inc_intervals_count++;
|
auto_inc_intervals_count++;
|
||||||
|
Reference in New Issue
Block a user