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
935025f8
Commit
935025f8
authored
6 years ago
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an explicit cast from double to ha_rows
parent
b2c47400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
storage/innobase/gis/gis0rtree.cc
storage/innobase/gis/gis0rtree.cc
+3
-3
No files found.
storage/innobase/gis/gis0rtree.cc
View file @
935025f8
...
@@ -1889,7 +1889,6 @@ rtr_estimate_n_rows_in_range(
...
@@ -1889,7 +1889,6 @@ rtr_estimate_n_rows_in_range(
mtr_t
mtr
;
mtr_t
mtr
;
buf_block_t
*
block
;
buf_block_t
*
block
;
page_t
*
page
;
page_t
*
page
;
ulint
n_recs
;
mtr
.
start
();
mtr
.
start
();
index
->
set_modified
(
mtr
);
index
->
set_modified
(
mtr
);
...
@@ -1900,7 +1899,7 @@ rtr_estimate_n_rows_in_range(
...
@@ -1900,7 +1899,7 @@ rtr_estimate_n_rows_in_range(
page_size_t
(
index
->
table
->
space
->
flags
),
page_size_t
(
index
->
table
->
space
->
flags
),
RW_S_LATCH
,
index
,
&
mtr
);
RW_S_LATCH
,
index
,
&
mtr
);
page
=
buf_block_get_frame
(
block
);
page
=
buf_block_get_frame
(
block
);
n_recs
=
page_header_get_field
(
page
,
PAGE_N_RECS
);
const
unsigned
n_recs
=
page_header_get_field
(
page
,
PAGE_N_RECS
);
if
(
n_recs
==
0
)
{
if
(
n_recs
==
0
)
{
mtr
.
commit
();
mtr
.
commit
();
...
@@ -1994,5 +1993,6 @@ rtr_estimate_n_rows_in_range(
...
@@ -1994,5 +1993,6 @@ rtr_estimate_n_rows_in_range(
return
(
HA_POS_ERROR
);
return
(
HA_POS_ERROR
);
}
}
return
dict_table_get_n_rows
(
index
->
table
)
*
area
/
n_recs
;
area
/=
n_recs
;
return
ha_rows
(
dict_table_get_n_rows
(
index
->
table
)
*
area
);
}
}
This diff is collapsed.
Click to expand it.
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