5.0-opt -> 5.1-opt merge

parent fbefe9d5
...@@ -3581,10 +3581,10 @@ longlong Item_func_release_lock::val_int() ...@@ -3581,10 +3581,10 @@ longlong Item_func_release_lock::val_int()
} }
else else
{ {
DBUG_PRINT("info", ("ull->locked=%d ull->thread=%ld thd=%ld", DBUG_PRINT("info", ("ull->locked=%d ull->thread=%lu thd=%lu",
(int) ull->locked, (int) ull->locked,
(long)ull->thread, (long)ull->thread_id,
(long)thd->real_id)); (long)thd->thread_id));
if (ull->locked && current_thd->thread_id == ull->thread_id) if (ull->locked && current_thd->thread_id == ull->thread_id)
{ {
DBUG_PRINT("info", ("release lock")); DBUG_PRINT("info", ("release lock"));
......
...@@ -1419,8 +1419,8 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info) ...@@ -1419,8 +1419,8 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
goto before_trg_err; goto before_trg_err;
table->file->restore_auto_increment(prev_insert_id); table->file->restore_auto_increment(prev_insert_id);
if ((table->file->table_flags() & HA_PARTIAL_COLUMN_READ) || if ((table->file->ha_table_flags() & HA_PARTIAL_COLUMN_READ) ||
compare_record(table, thd->query_id)) compare_record(table))
{ {
if ((error=table->file->ha_update_row(table->record[1], if ((error=table->file->ha_update_row(table->record[1],
table->record[0]))) table->record[0])))
......
...@@ -33,7 +33,8 @@ class sys_var; ...@@ -33,7 +33,8 @@ class sys_var;
*/ */
#define SHOW_FUNC SHOW_FUNC, SHOW_KEY_CACHE_LONG, SHOW_KEY_CACHE_LONGLONG, \ #define SHOW_FUNC SHOW_FUNC, SHOW_KEY_CACHE_LONG, SHOW_KEY_CACHE_LONGLONG, \
SHOW_LONG_STATUS, SHOW_DOUBLE_STATUS, SHOW_HAVE, \ SHOW_LONG_STATUS, SHOW_DOUBLE_STATUS, SHOW_HAVE, \
SHOW_MY_BOOL, SHOW_HA_ROWS, SHOW_SYS, SHOW_LONG_NOFLUSH SHOW_MY_BOOL, SHOW_HA_ROWS, SHOW_SYS, SHOW_LONG_NOFLUSH, \
SHOW_LONGLONG_STATUS
#include <mysql/plugin.h> #include <mysql/plugin.h>
#undef SHOW_FUNC #undef SHOW_FUNC
typedef enum enum_mysql_show_type SHOW_TYPE; typedef enum enum_mysql_show_type SHOW_TYPE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment