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
2b00bdfd
Commit
2b00bdfd
authored
Mar 21, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12026: Avoid uninitialized variable
parent
b6a6aa5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
storage/innobase/fsp/fsp0file.cc
storage/innobase/fsp/fsp0file.cc
+13
-1
No files found.
storage/innobase/fsp/fsp0file.cc
View file @
2b00bdfd
/*****************************************************************************
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 201
8
, MariaDB Corporation.
Copyright (c) 2017, 201
9
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -660,6 +660,18 @@ Datafile::find_space_id()
ut_align
(
buf
,
UNIV_SECTOR_SIZE
));
ulint
fsp_flags
;
/* provide dummy value if the first os_file_read() fails */
switch
(
srv_checksum_algorithm
)
{
case
SRV_CHECKSUM_ALGORITHM_STRICT_FULL_CRC32
:
case
SRV_CHECKSUM_ALGORITHM_FULL_CRC32
:
fsp_flags
=
1U
<<
FSP_FLAGS_FCRC32_POS_MARKER
|
FSP_FLAGS_FCRC32_PAGE_SSIZE
()
|
innodb_compression_algorithm
<<
FSP_FLAGS_FCRC32_POS_COMPRESSED_ALGO
;
break
;
default:
fsp_flags
=
0
;
}
for
(
ulint
j
=
0
;
j
<
page_count
;
++
j
)
{
...
...
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