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
98cc7a8e
Commit
98cc7a8e
authored
Oct 18, 2017
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings
parent
3294f6c3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
11 deletions
+15
-11
sql/opt_range.cc
sql/opt_range.cc
+4
-3
sql/sql_test.cc
sql/sql_test.cc
+5
-3
storage/connect/filamtxt.cpp
storage/connect/filamtxt.cpp
+1
-1
storage/innobase/rem/rem0rec.cc
storage/innobase/rem/rem0rec.cc
+4
-3
storage/maria/ma_checkpoint.c
storage/maria/ma_checkpoint.c
+1
-1
No files found.
sql/opt_range.cc
View file @
98cc7a8e
...
...
@@ -4643,6 +4643,7 @@ TABLE_READ_PLAN *get_best_disjunct_quick(PARAM *param, SEL_IMERGE *imerge,
double
roru_index_costs
;
ha_rows
roru_total_records
;
double
roru_intersect_part
=
1.0
;
ulong
n_child_scans
;
DBUG_ENTER
(
"get_best_disjunct_quick"
);
DBUG_PRINT
(
"info"
,
(
"Full table scan cost: %g"
,
read_time
));
...
...
@@ -4659,7 +4660,7 @@ TABLE_READ_PLAN *get_best_disjunct_quick(PARAM *param, SEL_IMERGE *imerge,
}
}
size_t
n_child_scans
=
imerge
->
trees_next
-
imerge
->
trees
;
n_child_scans
=
imerge
->
trees_next
-
imerge
->
trees
;
if
(
!
n_child_scans
)
DBUG_RETURN
(
NULL
);
...
...
@@ -4877,8 +4878,8 @@ TABLE_READ_PLAN *get_best_disjunct_quick(PARAM *param, SEL_IMERGE *imerge,
(
TIME_FOR_COMPARE_ROWID
*
M_LN2
)
+
get_sweep_read_cost
(
param
,
roru_total_records
);
DBUG_PRINT
(
"info"
,
(
"ROR-union: cost %g, %
d members"
,
roru_total_cost
,
n_child_scans
));
DBUG_PRINT
(
"info"
,
(
"ROR-union: cost %g, %
lu members"
,
roru_total_cost
,
n_child_scans
));
TRP_ROR_UNION
*
roru
;
if
(
roru_total_cost
<
read_time
)
{
...
...
sql/sql_test.cc
View file @
98cc7a8e
...
...
@@ -85,8 +85,9 @@ static my_bool print_cached_tables_callback(TDC_element *element,
while
((
entry
=
it
++
))
{
THD
*
in_use
=
entry
->
in_use
;
printf
(
"%-14.14s %-32s%6ld%8ld%6d %s
\n
"
,
entry
->
s
->
db
.
str
,
entry
->
s
->
table_name
.
str
,
element
->
version
,
printf
(
"%-14.14s %-32s%6lu%8ld%6d %s
\n
"
,
entry
->
s
->
db
.
str
,
entry
->
s
->
table_name
.
str
,
(
ulong
)
element
->
version
,
in_use
?
(
long
)
in_use
->
thread_id
:
(
long
)
0
,
entry
->
db_stat
?
1
:
0
,
in_use
?
lock_descriptions
[(
int
)
entry
->
reginfo
.
lock_type
]
:
...
...
@@ -106,7 +107,8 @@ static void print_cached_tables(void)
tdc_iterate
(
0
,
(
my_hash_walk_action
)
print_cached_tables_callback
,
NULL
,
true
);
printf
(
"
\n
Current refresh version: %ld
\n
"
,
tdc_refresh_version
());
printf
(
"
\n
Current refresh version: %ld
\n
"
,
(
long
)
tdc_refresh_version
());
fflush
(
stdout
);
/* purecov: end */
return
;
...
...
storage/connect/filamtxt.cpp
View file @
98cc7a8e
...
...
@@ -1459,7 +1459,7 @@ int BLKFAM::ReadBuffer(PGLOBAL g)
// Read the entire next block
n
=
fread
(
To_Buf
,
1
,
(
size_t
)
BlkLen
,
Stream
);
if
(
n
==
BlkLen
)
{
if
(
(
size_t
)
n
==
(
size_t
)
BlkLen
)
{
// ReadBlks++;
num_read
++
;
Rbuf
=
(
CurBlk
==
Block
-
1
)
?
Last
:
Nrec
;
...
...
storage/innobase/rem/rem0rec.cc
View file @
98cc7a8e
...
...
@@ -570,9 +570,10 @@ rec_get_offsets_func(
case
REC_STATUS_SUPREMUM
:
/* infimum or supremum record */
ut_ad
(
rec_get_heap_no_new
(
rec
)
==
(
rec_get_status
(
rec
)
==
REC_STATUS_INFIMUM
?
PAGE_HEAP_NO_INFIMUM
:
PAGE_HEAP_NO_SUPREMUM
));
==
ulint
(
rec_get_status
(
rec
)
==
REC_STATUS_INFIMUM
?
PAGE_HEAP_NO_INFIMUM
:
PAGE_HEAP_NO_SUPREMUM
));
n
=
1
;
break
;
default:
...
...
storage/maria/ma_checkpoint.c
View file @
98cc7a8e
...
...
@@ -332,8 +332,8 @@ int ma_checkpoint_init(ulong interval)
res
=
1
;
else
if
(
interval
>
0
)
{
compile_time_assert
(
sizeof
(
void
*
)
>=
sizeof
(
ulong
));
size_t
intv
=
interval
;
compile_time_assert
(
sizeof
(
void
*
)
>=
sizeof
(
ulong
));
if
((
res
=
mysql_thread_create
(
key_thread_checkpoint
,
&
checkpoint_control
.
thread
,
NULL
,
ma_checkpoint_background
,
...
...
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