1
0
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:
Vladislav Vaintroub
2012-10-18 11:19:28 +02:00
parent bf106948e0
commit 4b4d74b517

View File

@@ -2621,8 +2621,7 @@ int handler::update_auto_increment()
if (unlikely(nr == ULONGLONG_MAX))
DBUG_RETURN(HA_ERR_AUTOINC_ERANGE);
DBUG_PRINT("info",("auto_increment: %llu nb_reserved_values: %llu",
nr, nb_reserved_values));
DBUG_PRINT("info",("auto_increment: %llu",nr));
/* Store field without warning (Warning will be printed by insert) */
save_count_cuted_fields= thd->count_cuted_fields;
@@ -2640,6 +2639,8 @@ int handler::update_auto_increment()
}
if (append)
{
DBUG_PRINT("info",("nb_reserved_values: %llu",nb_reserved_values));
auto_inc_interval_for_cur_row.replace(nr, nb_reserved_values,
variables->auto_increment_increment);
auto_inc_intervals_count++;