Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
66ef5b0d
Commit
66ef5b0d
authored
Jun 29, 2012
by
Jon Olav Hauglid
Browse files
Options
Browse Files
Download
Plain Diff
Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING)
Manual merge from mysql-5.1 to mysql-5.5
parents
4661d954
1ede2dd8
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
26 additions
and
26 deletions
+26
-26
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+2
-2
client/mysqltest.cc
client/mysqltest.cc
+2
-2
include/my_getopt.h
include/my_getopt.h
+2
-2
plugin/semisync/semisync.cc
plugin/semisync/semisync.cc
+1
-1
plugin/semisync/semisync.h
plugin/semisync/semisync.h
+1
-1
plugin/semisync/semisync_master_plugin.cc
plugin/semisync/semisync_master_plugin.cc
+2
-2
plugin/semisync/semisync_slave_plugin.cc
plugin/semisync/semisync_slave_plugin.cc
+1
-1
sql/log.h
sql/log.h
+3
-3
sql/sql_plugin.cc
sql/sql_plugin.cc
+1
-1
sql/sql_plugin.h
sql/sql_plugin.h
+2
-2
sql/sql_profile.cc
sql/sql_profile.cc
+3
-3
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+6
-6
No files found.
client/mysqlbinlog.cc
View file @
66ef5b0d
/*
Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -1162,7 +1162,7 @@ static struct my_option my_long_options[] =
"Stop reading the binlog at position N. Applies to the last binlog "
"passed on the command line."
,
&
stop_position
,
&
stop_position
,
0
,
GET_ULL
,
REQUIRED_ARG
,
(
u
longlong
)(
~
(
my_off_t
)
0
),
BIN_LOG_HEADER_SIZE
,
REQUIRED_ARG
,
(
longlong
)(
~
(
my_off_t
)
0
),
BIN_LOG_HEADER_SIZE
,
(
ulonglong
)(
~
(
my_off_t
)
0
),
0
,
0
,
0
},
{
"to-last-log"
,
't'
,
"Requires -R. Will not stop at the end of the \
requested binlog but rather continue printing until the end of the last \
...
...
client/mysqltest.cc
View file @
66ef5b0d
/* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -4823,7 +4823,7 @@ typedef struct
static
st_error
global_error_names
[]
=
{
{
"<No error>"
,
-
1
,
""
},
{
"<No error>"
,
-
1
U
,
""
},
#include <mysqld_ername.h>
{
0
,
0
,
0
}
};
...
...
include/my_getopt.h
View file @
66ef5b0d
/*
Copyright (c) 2002, 201
1
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2002, 201
2
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -79,7 +79,7 @@ struct my_option
enum
get_opt_arg_type
arg_type
;
/**< e.g. REQUIRED_ARG or OPT_ARG */
longlong
def_value
;
/**< Default value */
longlong
min_value
;
/**< Min allowed value (for numbers) */
longlong
max_value
;
/**< Max allowed value (for numbers) */
ulonglong
max_value
;
/**< Max allowed value (for numbers) */
longlong
sub_size
;
/**< Unused */
long
block_size
;
/**< Value should be a mult. of this (for numbers) */
void
*
app_type
;
/**< To be used by an application */
...
...
plugin/semisync/semisync.cc
View file @
66ef5b0d
...
...
@@ -26,5 +26,5 @@ const unsigned long Trace::kTraceDetail = 0x0010;
const
unsigned
long
Trace
::
kTraceNetWait
=
0x0020
;
const
unsigned
long
Trace
::
kTraceFunction
=
0x0040
;
const
char
ReplSemiSyncBase
::
kSyncHeader
[
2
]
=
const
unsigned
char
ReplSemiSyncBase
::
kSyncHeader
[
2
]
=
{
ReplSemiSyncBase
::
kPacketMagicNum
,
0
};
plugin/semisync/semisync.h
View file @
66ef5b0d
...
...
@@ -71,7 +71,7 @@ class Trace {
class
ReplSemiSyncBase
:
public
Trace
{
public:
static
const
char
kSyncHeader
[
2
];
/* three byte packet header */
static
const
unsigned
char
kSyncHeader
[
2
];
/* three byte packet header */
/* Constants in network packet header. */
static
const
unsigned
char
kPacketMagicNum
;
...
...
plugin/semisync/semisync_master_plugin.cc
View file @
66ef5b0d
...
...
@@ -180,7 +180,7 @@ static MYSQL_SYSVAR_ULONG(timeout, rpl_semi_sync_master_timeout,
"The timeout value (in ms) for semi-synchronous replication in the master"
,
NULL
,
// check
fix_rpl_semi_sync_master_timeout
,
// update
10000
,
0
,
~
0L
,
1
);
10000
,
0
,
~
0
U
L
,
1
);
static
MYSQL_SYSVAR_BOOL
(
wait_no_slave
,
rpl_semi_sync_master_wait_no_slave
,
PLUGIN_VAR_OPCMDARG
,
...
...
@@ -194,7 +194,7 @@ static MYSQL_SYSVAR_ULONG(trace_level, rpl_semi_sync_master_trace_level,
"The tracing level for semi-sync replication."
,
NULL
,
// check
&
fix_rpl_semi_sync_master_trace_level
,
// update
32
,
0
,
~
0L
,
1
);
32
,
0
,
~
0
U
L
,
1
);
static
SYS_VAR
*
semi_sync_master_system_vars
[]
=
{
MYSQL_SYSVAR
(
enabled
),
...
...
plugin/semisync/semisync_slave_plugin.cc
View file @
66ef5b0d
...
...
@@ -161,7 +161,7 @@ static MYSQL_SYSVAR_ULONG(trace_level, rpl_semi_sync_slave_trace_level,
"The tracing level for semi-sync replication."
,
NULL
,
// check
&
fix_rpl_semi_sync_trace_level
,
// update
32
,
0
,
~
0L
,
1
);
32
,
0
,
~
0
U
L
,
1
);
static
SYS_VAR
*
semi_sync_slave_system_vars
[]
=
{
MYSQL_SYSVAR
(
enabled
),
...
...
sql/log.h
View file @
66ef5b0d
/* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2005, 201
2
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -353,8 +353,8 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG
int
new_file_impl
(
bool
need_lock
);
public:
MYSQL_LOG
::
generate_name
;
MYSQL_LOG
::
is_open
;
using
MYSQL_LOG
::
generate_name
;
using
MYSQL_LOG
::
is_open
;
/* This is relay log */
bool
is_relay_log
;
...
...
sql/sql_plugin.cc
View file @
66ef5b0d
...
...
@@ -714,7 +714,7 @@ bool plugin_is_ready(const LEX_STRING *name, int type)
}
SHOW_COMP_OPTION
plugin_status
(
const
char
*
name
,
int
len
,
size_
t
type
)
SHOW_COMP_OPTION
plugin_status
(
const
char
*
name
,
size_t
len
,
in
t
type
)
{
LEX_STRING
plugin_name
=
{
(
char
*
)
name
,
len
};
return
plugin_status
(
&
plugin_name
,
type
);
...
...
sql/sql_plugin.h
View file @
66ef5b0d
/* Copyright (c) 2005, 201
0
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2005, 201
2
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -154,7 +154,7 @@ extern bool mysql_uninstall_plugin(THD *thd, const LEX_STRING *name);
extern
bool
plugin_register_builtin
(
struct
st_mysql_plugin
*
plugin
);
extern
void
plugin_thdvar_init
(
THD
*
thd
);
extern
void
plugin_thdvar_cleanup
(
THD
*
thd
);
extern
SHOW_COMP_OPTION
plugin_status
(
const
char
*
name
,
int
len
,
size_
t
type
);
extern
SHOW_COMP_OPTION
plugin_status
(
const
char
*
name
,
size_t
len
,
in
t
type
);
extern
bool
check_valid_path
(
const
char
*
path
,
size_t
length
);
typedef
my_bool
(
plugin_foreach_func
)(
THD
*
thd
,
...
...
sql/sql_profile.cc
View file @
66ef5b0d
/* Copyright (c) 2007, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2007, 201
2
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -83,8 +83,8 @@ ST_FIELD_INFO query_profile_statistics_info[]=
int
make_profile_table_for_show
(
THD
*
thd
,
ST_SCHEMA_TABLE
*
schema_table
)
{
int
profile_options
=
thd
->
lex
->
profile_options
;
int
fields_include_condition_truth_values
[]
=
{
u
int
profile_options
=
thd
->
lex
->
profile_options
;
u
int
fields_include_condition_truth_values
[]
=
{
FALSE
,
/* Query_id */
FALSE
,
/* Seq */
TRUE
,
/* Status */
...
...
storage/innobase/handler/ha_innodb.cc
View file @
66ef5b0d
...
...
@@ -11337,7 +11337,7 @@ static MYSQL_SYSVAR_BOOL(doublewrite, innobase_use_doublewrite,
static
MYSQL_SYSVAR_ULONG
(
io_capacity
,
srv_io_capacity
,
PLUGIN_VAR_RQCMDARG
,
"Number of IOPs the server can do. Tunes the background IO rate"
,
NULL
,
NULL
,
200
,
100
,
~
0L
,
0
);
NULL
,
NULL
,
200
,
100
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_ULONG
(
purge_batch_size
,
srv_purge_batch_size
,
PLUGIN_VAR_OPCMDARG
,
...
...
@@ -11454,7 +11454,7 @@ static MYSQL_SYSVAR_BOOL(adaptive_flushing, srv_adaptive_flushing,
static
MYSQL_SYSVAR_ULONG
(
max_purge_lag
,
srv_max_purge_lag
,
PLUGIN_VAR_RQCMDARG
,
"Desired maximum length of the purge queue (0 = no limit)"
,
NULL
,
NULL
,
0
,
0
,
~
0L
,
0
);
NULL
,
NULL
,
0
,
0
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_BOOL
(
rollback_on_timeout
,
innobase_rollback_on_timeout
,
PLUGIN_VAR_OPCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
@@ -11516,7 +11516,7 @@ static MYSQL_SYSVAR_ULONG(commit_concurrency, innobase_commit_concurrency,
static
MYSQL_SYSVAR_ULONG
(
concurrency_tickets
,
srv_n_free_tickets_to_enter
,
PLUGIN_VAR_RQCMDARG
,
"Number of times a thread is allowed to enter InnoDB within the same SQL query after it has once got the ticket"
,
NULL
,
NULL
,
500L
,
1L
,
~
0L
,
0
);
NULL
,
NULL
,
500L
,
1L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_LONG
(
file_io_threads
,
innobase_file_io_threads
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
|
PLUGIN_VAR_NOSYSVAR
,
...
...
@@ -11578,12 +11578,12 @@ static MYSQL_SYSVAR_LONG(open_files, innobase_open_files,
static
MYSQL_SYSVAR_ULONG
(
sync_spin_loops
,
srv_n_spin_wait_rounds
,
PLUGIN_VAR_RQCMDARG
,
"Count of spin-loop rounds in InnoDB mutexes (30 by default)"
,
NULL
,
NULL
,
30L
,
0L
,
~
0L
,
0
);
NULL
,
NULL
,
30L
,
0L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_ULONG
(
spin_wait_delay
,
srv_spin_wait_delay
,
PLUGIN_VAR_OPCMDARG
,
"Maximum delay between polling for a spin lock (6 by default)"
,
NULL
,
NULL
,
6L
,
0L
,
~
0L
,
0
);
NULL
,
NULL
,
6L
,
0L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_ULONG
(
thread_concurrency
,
srv_thread_concurrency
,
PLUGIN_VAR_RQCMDARG
,
...
...
@@ -11593,7 +11593,7 @@ static MYSQL_SYSVAR_ULONG(thread_concurrency, srv_thread_concurrency,
static
MYSQL_SYSVAR_ULONG
(
thread_sleep_delay
,
srv_thread_sleep_delay
,
PLUGIN_VAR_RQCMDARG
,
"Time of innodb thread sleeping before joining InnoDB queue (usec). Value 0 disable a sleep"
,
NULL
,
NULL
,
10000L
,
0L
,
~
0L
,
0
);
NULL
,
NULL
,
10000L
,
0L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_STR
(
data_file_path
,
innobase_data_file_path
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment