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
9e1cc831
Commit
9e1cc831
authored
Jun 20, 2017
by
Michael Widenius
Committed by
Sergei Golubchik
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some compiler warnings
parent
f71bed08
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
sql/item_func.cc
sql/item_func.cc
+4
-2
sql/sql_parse.cc
sql/sql_parse.cc
+2
-1
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+1
-1
storage/connect/jmgoconn.cpp
storage/connect/jmgoconn.cpp
+2
-2
storage/connect/myconn.cpp
storage/connect/myconn.cpp
+1
-1
support-files/compiler_warnings.supp
support-files/compiler_warnings.supp
+2
-0
No files found.
sql/item_func.cc
View file @
9e1cc831
...
@@ -3651,6 +3651,7 @@ longlong Item_master_gtid_wait::val_int()
...
@@ -3651,6 +3651,7 @@ longlong Item_master_gtid_wait::val_int()
{
{
DBUG_ASSERT
(
fixed
==
1
);
DBUG_ASSERT
(
fixed
==
1
);
longlong
result
=
0
;
longlong
result
=
0
;
String
*
gtid_pos
__attribute__
((
unused
))
=
args
[
0
]
->
val_str
(
&
value
);
if
(
args
[
0
]
->
null_value
)
if
(
args
[
0
]
->
null_value
)
{
{
...
@@ -3660,7 +3661,6 @@ longlong Item_master_gtid_wait::val_int()
...
@@ -3660,7 +3661,6 @@ longlong Item_master_gtid_wait::val_int()
null_value
=
0
;
null_value
=
0
;
#ifdef HAVE_REPLICATION
#ifdef HAVE_REPLICATION
String
*
gtid_pos
=
args
[
0
]
->
val_str
(
&
value
);
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
longlong
timeout_us
;
longlong
timeout_us
;
...
@@ -3670,7 +3670,9 @@ longlong Item_master_gtid_wait::val_int()
...
@@ -3670,7 +3670,9 @@ longlong Item_master_gtid_wait::val_int()
timeout_us
=
(
longlong
)
-
1
;
timeout_us
=
(
longlong
)
-
1
;
result
=
rpl_global_gtid_waiting
.
wait_for_pos
(
thd
,
gtid_pos
,
timeout_us
);
result
=
rpl_global_gtid_waiting
.
wait_for_pos
(
thd
,
gtid_pos
,
timeout_us
);
#endif
#else
null_value
=
0
;
#endif
/* REPLICATION */
return
result
;
return
result
;
}
}
...
...
sql/sql_parse.cc
View file @
9e1cc831
...
@@ -1288,7 +1288,8 @@ bool do_command(THD *thd)
...
@@ -1288,7 +1288,8 @@ bool do_command(THD *thd)
mysql_mutex_lock
(
&
thd
->
LOCK_wsrep_thd
);
mysql_mutex_lock
(
&
thd
->
LOCK_wsrep_thd
);
if
(
thd
->
wsrep_conflict_state
==
MUST_ABORT
)
if
(
thd
->
wsrep_conflict_state
==
MUST_ABORT
)
{
{
DBUG_PRINT
(
"wsrep"
,(
"aborted for wsrep rollback: %lu"
,
thd
->
real_id
));
DBUG_PRINT
(
"wsrep"
,(
"aborted for wsrep rollback: %lu"
,
(
ulong
)
thd
->
real_id
));
wsrep_client_rollback
(
thd
);
wsrep_client_rollback
(
thd
);
}
}
mysql_mutex_unlock
(
&
thd
->
LOCK_wsrep_thd
);
mysql_mutex_unlock
(
&
thd
->
LOCK_wsrep_thd
);
...
...
sql/wsrep_mysqld.cc
View file @
9e1cc831
...
@@ -1945,7 +1945,7 @@ static bool abort_replicated(THD *thd)
...
@@ -1945,7 +1945,7 @@ static bool abort_replicated(THD *thd)
bool
ret_code
=
false
;
bool
ret_code
=
false
;
if
(
thd
->
wsrep_query_state
==
QUERY_COMMITTING
)
if
(
thd
->
wsrep_query_state
==
QUERY_COMMITTING
)
{
{
WSREP_DEBUG
(
"aborting replicated trx: %lu"
,
thd
->
real_id
);
WSREP_DEBUG
(
"aborting replicated trx: %lu"
,
(
ulong
)
thd
->
real_id
);
(
void
)
wsrep_abort_thd
(
thd
,
thd
,
TRUE
);
(
void
)
wsrep_abort_thd
(
thd
,
thd
,
TRUE
);
ret_code
=
true
;
ret_code
=
true
;
...
...
storage/connect/jmgoconn.cpp
View file @
9e1cc831
...
@@ -730,7 +730,7 @@ int JMgoConn::DocUpdate(PGLOBAL g, PTDB tdbp)
...
@@ -730,7 +730,7 @@ int JMgoConn::DocUpdate(PGLOBAL g, PTDB tdbp)
return
RC_FX
;
return
RC_FX
;
if
(
env
->
CallBooleanMethod
(
job
,
docaddid
,
updlist
,
jkey
,
val
))
if
(
env
->
CallBooleanMethod
(
job
,
docaddid
,
updlist
,
jkey
,
val
))
return
NULL
;
return
0
;
env
->
DeleteLocalRef
(
jkey
);
env
->
DeleteLocalRef
(
jkey
);
}
// endfor colp
}
// endfor colp
...
@@ -740,7 +740,7 @@ int JMgoConn::DocUpdate(PGLOBAL g, PTDB tdbp)
...
@@ -740,7 +740,7 @@ int JMgoConn::DocUpdate(PGLOBAL g, PTDB tdbp)
jkey
=
env
->
NewStringUTF
(
"$set"
);
jkey
=
env
->
NewStringUTF
(
"$set"
);
if
(
env
->
CallBooleanMethod
(
job
,
docaddid
,
upd
,
jkey
,
updlist
))
if
(
env
->
CallBooleanMethod
(
job
,
docaddid
,
upd
,
jkey
,
updlist
))
return
NULL
;
return
0
;
env
->
DeleteLocalRef
(
jkey
);
env
->
DeleteLocalRef
(
jkey
);
...
...
storage/connect/myconn.cpp
View file @
9e1cc831
...
@@ -139,7 +139,7 @@ PQRYRES MyColumns(PGLOBAL g, THD *thd, const char *host, const char *db,
...
@@ -139,7 +139,7 @@ PQRYRES MyColumns(PGLOBAL g, THD *thd, const char *host, const char *db,
unsigned
int
length
[]
=
{
0
,
4
,
0
,
4
,
4
,
4
,
4
,
4
,
0
,
0
,
0
,
0
,
0
};
unsigned
int
length
[]
=
{
0
,
4
,
0
,
4
,
4
,
4
,
4
,
4
,
0
,
0
,
0
,
0
,
0
};
PCSZ
fmt
;
PCSZ
fmt
;
char
*
fld
,
*
colname
,
*
chset
,
v
,
buf
[
128
],
uns
[
16
],
zero
[
16
];
char
*
fld
,
*
colname
,
*
chset
,
v
,
buf
[
128
],
uns
[
16
],
zero
[
16
];
int
i
,
n
,
nf
,
ncol
=
sizeof
(
buftyp
)
/
sizeof
(
int
);
int
i
,
n
,
nf
=
0
,
ncol
=
sizeof
(
buftyp
)
/
sizeof
(
int
);
int
len
,
type
,
prec
,
rc
,
k
=
0
;
int
len
,
type
,
prec
,
rc
,
k
=
0
;
bool
b
;
bool
b
;
PQRYRES
qrp
;
PQRYRES
qrp
;
...
...
support-files/compiler_warnings.supp
View file @
9e1cc831
...
@@ -146,6 +146,8 @@
...
@@ -146,6 +146,8 @@
.*/storage/connect/xindex\.cpp: ignoring return value of
.*/storage/connect/xindex\.cpp: ignoring return value of
.*/storage/connect/value\.cpp: always false : 1000-1020
.*/storage/connect/value\.cpp: always false : 1000-1020
.*/storage/connect/json\.cpp: might be clobbered by
.*/storage/connect/json\.cpp: might be clobbered by
.*/storage/connect/filemdbf\.cpp: ignoring return value.*fwrite
.*/storage/connect/value\.cpp: .*comparison is always false due to limited range
#
#
# mroonga
# mroonga
...
...
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