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
06f7a762
Commit
06f7a762
authored
Sep 26, 2017
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warning
parent
2fdbe150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
storage/maria/ma_create.c
storage/maria/ma_create.c
+5
-5
No files found.
storage/maria/ma_create.c
View file @
06f7a762
...
...
@@ -57,7 +57,7 @@ int maria_create(const char *name, enum data_file_type datafile_type,
char
kfilename
[
FN_REFLEN
],
klinkname
[
FN_REFLEN
],
*
klinkname_ptr
;
char
dfilename
[
FN_REFLEN
],
dlinkname
[
FN_REFLEN
],
*
dlinkname_ptr
;
ulong
pack_reclength
;
ulonglong
tot_length
,
max_rows
,
tmp
;
ulonglong
tot_length
,
max_rows
,
tmp
,
tot_length_part
;
enum
en_fieldtype
type
;
enum
data_file_type
org_datafile_type
=
datafile_type
;
MARIA_SHARE
share
;
...
...
@@ -664,10 +664,10 @@ int maria_create(const char *name, enum data_file_type datafile_type,
if
(
tot_length
==
ULLONG_MAX
)
continue
;
ulonglong
tot_length_part
=
(
max_rows
/
(
ulong
)
(((
uint
)
maria_block_size
-
MAX_KEYPAGE_HEADER_SIZE
-
KEYPAGE_CHECKSUM_SIZE
)
/
(
length
*
2
)));
tot_length_part
=
(
max_rows
/
(
ulong
)
(((
uint
)
maria_block_size
-
MAX_KEYPAGE_HEADER_SIZE
-
KEYPAGE_CHECKSUM_SIZE
)
/
(
length
*
2
)));
if
(
tot_length_part
>=
(
ULLONG_MAX
/
maria_block_size
+
ULLONG_MAX
%
maria_block_size
))
tot_length
=
ULLONG_MAX
;
...
...
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