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
edfd875f
Commit
edfd875f
authored
Mar 12, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix myisam checksum patch to check for HA_OPTION_CHECKSUM after it was set, not before
parent
e14291c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
storage/myisam/mi_create.c
storage/myisam/mi_create.c
+7
-7
No files found.
storage/myisam/mi_create.c
View file @
edfd875f
...
@@ -175,13 +175,6 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
...
@@ -175,13 +175,6 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
}
}
}
}
/*
Don't set HA_OPTION_NULL_FIELDS if no checksums, as this flag makes
that file incompatible with MySQL. This is ok, as this flag is only
used if one specifics table level checksums.
*/
if
(
!
(
options
&
HA_OPTION_CHECKSUM
))
options
&=
~
HA_OPTION_NULL_FIELDS
;
if
(
packed
||
(
flags
&
HA_PACK_RECORD
))
if
(
packed
||
(
flags
&
HA_PACK_RECORD
))
options
|=
HA_OPTION_PACK_RECORD
;
/* Must use packed records */
options
|=
HA_OPTION_PACK_RECORD
;
/* Must use packed records */
/* We can't use checksum with static length rows */
/* We can't use checksum with static length rows */
...
@@ -199,6 +192,13 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
...
@@ -199,6 +192,13 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
options
|=
HA_OPTION_CHECKSUM
;
options
|=
HA_OPTION_CHECKSUM
;
min_pack_length
++
;
min_pack_length
++
;
}
}
/*
Don't set HA_OPTION_NULL_FIELDS if no checksums, as this flag makes
that file incompatible with MySQL. This is ok, as this flag is only
used if one specifics table level checksums.
*/
if
(
!
(
options
&
HA_OPTION_CHECKSUM
))
options
&=
~
HA_OPTION_NULL_FIELDS
;
if
(
flags
&
HA_CREATE_DELAY_KEY_WRITE
)
if
(
flags
&
HA_CREATE_DELAY_KEY_WRITE
)
options
|=
HA_OPTION_DELAY_KEY_WRITE
;
options
|=
HA_OPTION_DELAY_KEY_WRITE
;
if
(
flags
&
HA_CREATE_RELIES_ON_SQL_LAYER
)
if
(
flags
&
HA_CREATE_RELIES_ON_SQL_LAYER
)
...
...
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