diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-03-12 20:03:37 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-03-12 20:03:37 +0100 |
commit | edfd875fc1620964d68c9acbd3d36213f1c1663a (patch) | |
tree | a0e800c0f933f4c8ace01acd39502691e43d656d /storage | |
parent | e14291c1ff343287344f945bf0ad1b4edf5ab8d8 (diff) | |
download | mariadb-git-edfd875fc1620964d68c9acbd3d36213f1c1663a.tar.gz |
Fix myisam checksum patch to check for HA_OPTION_CHECKSUM after it was set, not before
Diffstat (limited to 'storage')
-rw-r--r-- | storage/myisam/mi_create.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/storage/myisam/mi_create.c b/storage/myisam/mi_create.c index bbe58143af5..d5ce941bf75 100644 --- a/storage/myisam/mi_create.c +++ b/storage/myisam/mi_create.c @@ -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)) options|=HA_OPTION_PACK_RECORD; /* Must use packed records */ /* We can't use checksum with static length rows */ @@ -199,6 +192,13 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, options|= HA_OPTION_CHECKSUM; 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) options|= HA_OPTION_DELAY_KEY_WRITE; if (flags & HA_CREATE_RELIES_ON_SQL_LAYER) |