Commit c1125c32 authored by Monty's avatar Monty

Fixed compiler warnings and failing tests

parent 7b96416f
......@@ -1500,7 +1500,9 @@ int main(
/* bytes read count */
ulong bytes;
/* Buffer to decompress page.*/
#ifdef MYSQL_COMPRESSION
byte* tbuf = NULL;
#endif
/* current time */
time_t now;
/* last time */
......@@ -1578,8 +1580,9 @@ int main(
buf = (byte*) malloc(UNIV_PAGE_SIZE_MAX * 2);
xdes = (byte *) malloc(UNIV_PAGE_SIZE_MAX *2);
#ifdef MYSQL_COMPRESSION
tbuf = buf + UNIV_PAGE_SIZE_MAX;
#endif
/* The file name is not optional. */
for (int i = 0; i < argc; ++i) {
/* Reset parameters for each file. */
......
......@@ -26,12 +26,6 @@ a b v
disconnect con1;
connection default;
set time_zone='+1:00';
select * from t1;
a b v
1 2 0.3333333333333333333
select * from t8;
a b v
1234567890 2 2009-02-14 09:31:30
flush tables;
select * from t1;
a b v
......
......@@ -35,10 +35,6 @@ select * from t8;
disconnect con1;
connection default;
set time_zone='+1:00';
select * from t1;
select * from t8;
flush tables;
select * from t1;
......
......@@ -3247,11 +3247,13 @@ static bool fix_tp_max_threads(sys_var *, THD *, enum_var_type)
}
#ifdef _WIN32
static bool fix_tp_min_threads(sys_var *, THD *, enum_var_type)
{
tp_set_min_threads(threadpool_min_threads);
return false;
}
#endif
static bool check_threadpool_size(sys_var *self, THD *thd, set_var *var)
{
......
......@@ -762,7 +762,7 @@ bool TDBJDBC::MakeCommand(PGLOBAL g)
} else {
sprintf(g->Message, "Cannot use this %s command",
(Mode == MODE_UPDATE) ? "UPDATE" : "DELETE");
return NULL;
return 1;
} // endif p
Query = new(g)STRING(g, 0, stmt);
......
......@@ -1787,7 +1787,6 @@ i_s_cmp_per_index_fill_low(
}
mutex_exit(&dict_sys->mutex);
err:
if (reset) {
page_zip_reset_stat_per_index();
......
......@@ -2418,8 +2418,9 @@ row_upd_sec_index_entry(
if (!rec_get_deleted_flag(
rec, dict_table_is_comp(index->table))) {
#ifdef WITH_WSREP
que_node_t *parent = que_node_get_parent(node);
#endif
err = btr_cur_del_mark_set_sec_rec(
flags, btr_cur, TRUE, thr, &mtr);
if (err != DB_SUCCESS) {
......
......@@ -179,7 +179,6 @@ void *mtflush_ctx=NULL;
static os_thread_t thread_handles[SRV_MAX_N_IO_THREADS + 6 + 32];
static os_thread_t buf_dump_thread_handle;
static os_thread_t dict_stats_thread_handle;
static os_thread_t buf_flush_page_cleaner_thread_handle;
/** Status variables, is thread started ?*/
static bool thread_started[SRV_MAX_N_IO_THREADS + 6 + 32] = {false};
static bool buf_dump_thread_started = false;
......
......@@ -1582,6 +1582,7 @@ sync_latch_meta_init()
}
/** Destroy the latch meta data */
#ifdef JAN_DISABLED_FOR_NOW_AS_THIS_CAUSES_CRASH
static
void
sync_latch_meta_destroy()
......@@ -1595,6 +1596,7 @@ sync_latch_meta_destroy()
latch_meta.clear();
}
#endif
/** Track mutex file creation name and line number. This is to avoid storing
{ const char* name; uint16_t line; } in every instance. This results in the
......@@ -1808,6 +1810,8 @@ sync_check_close()
create_tracker = NULL;
// sync_latch_meta_destroy();
#ifdef JAN_DISABLED_FOR_NOW_AS_THIS_CAUSES_CRASH
sync_latch_meta_destroy();
#endif
}
This diff is collapsed.
......@@ -5018,7 +5018,7 @@ buf_all_freed_instance(
block->page.offset);
ib_logf(IB_LOG_LEVEL_ERROR,
"Page oldest_modification %lu fix_count %d io_fix %d.",
block->page.oldest_modification,
(ulong) block->page.oldest_modification,
block->page.buf_fix_count,
buf_page_get_io_fix(&block->page));
ib_logf(IB_LOG_LEVEL_ERROR,
......
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