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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
26387734
Commit
26387734
authored
Oct 27, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gcc 4.6 warning after merge with 5.1
parent
dd564da3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
sql/sql_update.cc
sql/sql_update.cc
+2
-2
sql/table.cc
sql/table.cc
+1
-1
storage/maria/ma_blockrec.c
storage/maria/ma_blockrec.c
+0
-2
storage/maria/ma_dynrec.c
storage/maria/ma_dynrec.c
+9
-1
storage/sphinx/ha_sphinx.cc
storage/sphinx/ha_sphinx.cc
+1
-1
No files found.
sql/sql_update.cc
View file @
26387734
...
@@ -2081,8 +2081,8 @@ int multi_update::do_updates()
...
@@ -2081,8 +2081,8 @@ int multi_update::do_updates()
err:
err:
{
{
thd
->
fatal_error
();
thd
->
fatal_error
();
prepare_record_for_error_message
(
local_error
,
table
);
prepare_record_for_error_message
(
local_error
,
err_
table
);
table
->
file
->
print_error
(
local_error
,
MYF
(
0
));
err_
table
->
file
->
print_error
(
local_error
,
MYF
(
0
));
}
}
err2:
err2:
...
...
sql/table.cc
View file @
26387734
...
@@ -5484,7 +5484,7 @@ int update_virtual_fields(THD *thd, TABLE *table, bool for_write)
...
@@ -5484,7 +5484,7 @@ int update_virtual_fields(THD *thd, TABLE *table, bool for_write)
{
{
DBUG_ENTER
(
"update_virtual_fields"
);
DBUG_ENTER
(
"update_virtual_fields"
);
Field
**
vfield_ptr
,
*
vfield
;
Field
**
vfield_ptr
,
*
vfield
;
int
error
=
0
;
int
error
__attribute__
((
unused
))
=
0
;
if
(
!
table
||
!
table
->
vfield
)
if
(
!
table
||
!
table
->
vfield
)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
...
storage/maria/ma_blockrec.c
View file @
26387734
...
@@ -5342,7 +5342,6 @@ int _ma_scan_block_record(MARIA_HA *info, uchar *record,
...
@@ -5342,7 +5342,6 @@ int _ma_scan_block_record(MARIA_HA *info, uchar *record,
my_bool
skip_deleted
__attribute__
((
unused
)))
my_bool
skip_deleted
__attribute__
((
unused
)))
{
{
uint
block_size
;
uint
block_size
;
my_off_t
filepos
;
MARIA_SHARE
*
share
=
info
->
s
;
MARIA_SHARE
*
share
=
info
->
s
;
DBUG_ENTER
(
"_ma_scan_block_record"
);
DBUG_ENTER
(
"_ma_scan_block_record"
);
...
@@ -5472,7 +5471,6 @@ restart_bitmap_scan:
...
@@ -5472,7 +5471,6 @@ restart_bitmap_scan:
/* Read next bitmap */
/* Read next bitmap */
info
->
scan
.
bitmap_page
+=
share
->
bitmap
.
pages_covered
;
info
->
scan
.
bitmap_page
+=
share
->
bitmap
.
pages_covered
;
filepos
=
(
my_off_t
)
info
->
scan
.
bitmap_page
*
block_size
;
if
(
unlikely
(
info
->
scan
.
bitmap_page
>=
info
->
scan
.
max_page
))
if
(
unlikely
(
info
->
scan
.
bitmap_page
>=
info
->
scan
.
max_page
))
{
{
DBUG_PRINT
(
"info"
,
(
"Found end of file"
));
DBUG_PRINT
(
"info"
,
(
"Found end of file"
));
...
...
storage/maria/ma_dynrec.c
View file @
26387734
...
@@ -1741,14 +1741,20 @@ int _ma_read_rnd_dynamic_record(MARIA_HA *info,
...
@@ -1741,14 +1741,20 @@ int _ma_read_rnd_dynamic_record(MARIA_HA *info,
MARIA_RECORD_POS
filepos
,
MARIA_RECORD_POS
filepos
,
my_bool
skip_deleted_blocks
)
my_bool
skip_deleted_blocks
)
{
{
int
block_of_record
,
info_read
;
int
block_of_record
;
#ifdef MARIA_EXTERNAL_LOCKING
int
info_read
;
#endif
uint
left_len
,
b_type
;
uint
left_len
,
b_type
;
uchar
*
to
;
uchar
*
to
;
MARIA_BLOCK_INFO
block_info
;
MARIA_BLOCK_INFO
block_info
;
MARIA_SHARE
*
share
=
info
->
s
;
MARIA_SHARE
*
share
=
info
->
s
;
DBUG_ENTER
(
"_ma_read_rnd_dynamic_record"
);
DBUG_ENTER
(
"_ma_read_rnd_dynamic_record"
);
#ifdef MARIA_EXTERNAL_LOCKING
info_read
=
0
;
info_read
=
0
;
#endif
LINT_INIT
(
to
);
LINT_INIT
(
to
);
if
(
info
->
lock_type
==
F_UNLCK
)
if
(
info
->
lock_type
==
F_UNLCK
)
...
@@ -1758,8 +1764,10 @@ int _ma_read_rnd_dynamic_record(MARIA_HA *info,
...
@@ -1758,8 +1764,10 @@ int _ma_read_rnd_dynamic_record(MARIA_HA *info,
info
->
tmp_lock_type
=
F_RDLCK
;
info
->
tmp_lock_type
=
F_RDLCK
;
#endif
#endif
}
}
#ifdef MARIA_EXTERNAL_LOCKING
else
else
info_read
=
1
;
/* memory-keyinfoblock is ok */
info_read
=
1
;
/* memory-keyinfoblock is ok */
#endif
block_of_record
=
0
;
/* First block of record is numbered as zero. */
block_of_record
=
0
;
/* First block of record is numbered as zero. */
block_info
.
second_read
=
0
;
block_info
.
second_read
=
0
;
...
...
storage/sphinx/ha_sphinx.cc
View file @
26387734
...
@@ -703,7 +703,7 @@ static int sphinx_done_func ( void * )
...
@@ -703,7 +703,7 @@ static int sphinx_done_func ( void * )
pthread_mutex_destroy
(
&
sphinx_mutex
);
pthread_mutex_destroy
(
&
sphinx_mutex
);
}
}
SPH_RET
(
0
);
SPH_RET
(
error
);
}
}
...
...
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