Skip to content

Commit 1f6d91c

Browse files
author
[email protected]/narttu.mysql.fi
committed
after merge fixes
Removed
1 parent bb46461 commit 1f6d91c

18 files changed

Lines changed: 19 additions & 38 deletions

File tree

mysql-test/t/disabled.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ synchronization : Bug#24529 Test 'synchronization' fails on Mac pushb
3939
flush2 : Bug#24805 Pushbuild can't handle test with --disable-log-bin
4040
mysql_upgrade : Bug#25074 mysql_upgrade gives inconsisten results
4141
plugin : Bug#25659 memory leak via "plugins" test
42-
42+
rpl_ndb_dd_advance : Bug#25913 rpl_ndb_dd_advance fails randomly

mysql-test/t/rpl_ndb_dd_advance.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
--source include/have_binlog_format_row.inc
1010
--source include/ndb_default_cluster.inc
1111
--source include/not_embedded.inc
12+
--source include/big_test.inc
1213
#--source include/have_ndb_extra.inc
1314
--source include/master-slave.inc
1415

plugin/daemon_example/daemon_example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
1 failure (cannot happen)
4141
*/
4242

43-
static int daemon_example_plugin_init(void *p)
43+
static int daemon_example_plugin_init(void *p __attribute__ ((unused)))
4444
{
4545
return(0);
4646
}
@@ -59,7 +59,7 @@ static int daemon_example_plugin_init(void *p)
5959
6060
*/
6161

62-
static int daemon_example_plugin_deinit(void *p)
62+
static int daemon_example_plugin_deinit(void *p __attribute__ ((unused)))
6363
{
6464
return(0);
6565
}

sql/item_cmpfunc.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ longlong Item_in_optimizer::val_int()
896896
*/
897897
for (i= 0; i < ncols; i++)
898898
{
899-
if (cache->el(i)->null_value)
899+
if (cache->element_index(i)->null_value)
900900
item_subs->set_cond_guard_var(i, FALSE);
901901
}
902902

@@ -1020,8 +1020,10 @@ longlong Item_func_strcmp::val_int()
10201020

10211021
void Item_func_interval::fix_length_and_dec()
10221022
{
1023-
use_decimal_comparison= (row->element_index(0)->result_type() == DECIMAL_RESULT) ||
1024-
(row->element_index(0)->result_type() == INT_RESULT);
1023+
use_decimal_comparison= ((row->element_index(0)->result_type() ==
1024+
DECIMAL_RESULT) ||
1025+
(row->element_index(0)->result_type() ==
1026+
INT_RESULT));
10251027
if (row->cols() > 8)
10261028
{
10271029
bool consts=1;

sql/item_subselect.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ Item_in_subselect::row_value_transformer(JOIN *join)
12591259
(char *)"<list ref>")
12601260
);
12611261
Item *col_item= new Item_cond_or(item_eq, item_isnull);
1262-
if (!abort_on_null && left_expr->el(i)->maybe_null)
1262+
if (!abort_on_null && left_expr->element_index(i)->maybe_null)
12631263
{
12641264
if (!(col_item= new Item_func_trig_cond(col_item, get_cond_guard(i))))
12651265
DBUG_RETURN(RES_ERROR);
@@ -1273,7 +1273,7 @@ Item_in_subselect::row_value_transformer(JOIN *join)
12731273
ref_pointer_array + i,
12741274
(char *)"<no matter>",
12751275
(char *)"<list ref>"));
1276-
if (!abort_on_null && left_expr->el(i)->maybe_null)
1276+
if (!abort_on_null && left_expr->element_index(i)->maybe_null)
12771277
{
12781278
if (!(item_nnull_test=
12791279
new Item_func_trig_cond(item_nnull_test, get_cond_guard(i))))
@@ -1350,7 +1350,7 @@ Item_in_subselect::row_value_transformer(JOIN *join)
13501350
TODO: why we create the above for cases where the right part
13511351
cant be NULL?
13521352
*/
1353-
if (left_expr->el(i)->maybe_null)
1353+
if (left_expr->element_index(i)->maybe_null)
13541354
{
13551355
if (!(item= new Item_func_trig_cond(item, get_cond_guard(i))))
13561356
DBUG_RETURN(RES_ERROR);
@@ -1801,7 +1801,6 @@ int subselect_single_select_engine::exec()
18011801
if (!executed)
18021802
{
18031803
item->reset_value_registration();
1804-
bool have_changed_access= FALSE;
18051804
JOIN_TAB *changed_tabs[MAX_TABLES];
18061805
JOIN_TAB **last_changed_tab= changed_tabs;
18071806
if (item->have_guarded_conds())

storage/ndb/src/common/util/ConfigValues.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <NdbOut.hpp>
1919
#include <NdbTCP.h>
2020

21-
static Uint32 hash(Uint32 key, Uint32 size);
22-
static Uint32 nextHash(Uint32 key, Uint32 size, Uint32 pos, Uint32 count);
2321
static bool findKey(const Uint32 * vals, Uint32 sz, Uint32 key, Uint32 * pos);
2422

2523
/**

storage/ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ usage()
4040
<< "Example: " << progname << " -ceq ndb_*_fs/D[12]/DBDICT/P0.SchemaLog" << endl;
4141
}
4242

43+
#ifdef NOT_USED
44+
4345
static void
4446
fill(const char * buf, int mod)
4547
{
@@ -50,6 +52,7 @@ fill(const char * buf, int mod)
5052
len++;
5153
}
5254
}
55+
#endif
5356

5457
static const char*
5558
version(Uint32 v)

storage/ndb/src/kernel/blocks/lgman.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ void
133133
Lgman::execSTTOR(Signal* signal)
134134
{
135135
jamEntry();
136-
137-
const Uint32 startphase = signal->theData[1];
138-
const Uint32 typeOfStart = signal->theData[7];
139-
140136
sendSTTORRY(signal);
141137

142138
return;
@@ -274,7 +270,6 @@ Lgman::execDUMP_STATE_ORD(Signal* signal){
274270
!ptr.p->m_log_sync_waiters.isEmpty());
275271
if (!ptr.p->m_log_buffer_waiters.isEmpty())
276272
{
277-
Uint32 free_buffer= ptr.p->m_free_buffer_words;
278273
Ptr<Log_waiter> waiter;
279274
Local_log_waiter_list
280275
list(m_log_waiter_pool, ptr.p->m_log_buffer_waiters);
@@ -1937,8 +1932,7 @@ void
19371932
Lgman::execSUB_GCP_COMPLETE_REP(Signal* signal)
19381933
{
19391934
jamEntry();
1940-
Uint32 gci= ((SubGcpCompleteRep*)signal->getDataPtr())->gci;
1941-
1935+
19421936
Ptr<Logfile_group> ptr;
19431937
m_logfile_group_list.first(ptr);
19441938

storage/ndb/src/kernel/blocks/pgman.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ Pgman::lirs_stack_prune()
471471
debugOut << "PGMAN: >lirs_stack_prune" << endl;
472472
#endif
473473
Page_stack& pl_stack = m_page_stack;
474-
Page_queue& pl_queue = m_page_queue;
475474
Ptr<Page_entry> ptr;
476475

477476
while (pl_stack.first(ptr)) // first is stack bottom
@@ -804,7 +803,6 @@ Pgman::process_bind(Signal* signal, Ptr<Page_entry> ptr)
804803
#ifdef VM_TRACE
805804
debugOut << "PGMAN: " << ptr << " : process_bind" << endl;
806805
#endif
807-
Page_sublist& pl_bind = *m_page_sublist[Page_entry::SL_BIND];
808806
Page_queue& pl_queue = m_page_queue;
809807
Ptr<GlobalPage> gptr;
810808

storage/ndb/src/kernel/blocks/restore.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ Restore::execSTTOR(Signal* signal)
7171
{
7272
jamEntry();
7373

74-
const Uint32 startphase = signal->theData[1];
75-
const Uint32 typeOfStart = signal->theData[7];
7674
c_lqh = (Dblqh*)globalData.getBlock(DBLQH);
7775
c_tup = (Dbtup*)globalData.getBlock(DBTUP);
7876
sendSTTORRY(signal);
@@ -801,7 +799,6 @@ Restore::parse_table_description(Signal* signal, FilePtr file_ptr,
801799
return;
802800
}
803801

804-
Uint32 null_offset = 0;
805802
Column c;
806803
Uint32 colstore[sizeof(Column)/sizeof(Uint32)];
807804

0 commit comments

Comments
 (0)