diff options
author | unknown <serg@serg.mylan> | 2003-08-05 21:14:15 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-08-05 21:14:15 +0200 |
commit | eb5f968c455276ba2d13e5b44edadef1294d5ab5 (patch) | |
tree | 7f824b71d5779659b28c60ef72d0b119daa9ccf9 /sql/ha_myisam.cc | |
parent | ecc7001fbfc1b30a1bbd856b7a093045ccdf3c00 (diff) | |
download | mariadb-git-eb5f968c455276ba2d13e5b44edadef1294d5ab5.tar.gz |
table checksum background:
my_checksum() mysys function
NISAM checksum code moved from mysys to isam/ - it's obsolete
MyISAM checksum code moved to mysys
table's checksum accessible from sql layer
SHOW TABLE STATUS shows checksum (WL#646)
code cleanup
include/my_sys.h:
table checksum background: my_checksum() mysys function
include/myisam.h:
table checksum background: my_checksum() mysys function
MyISAM checksum code moved to mysys
isam/isamchk.c:
table checksum background:
NISAM checksum code moved from mysys to isam/ - it's obsolete
isam/isamdef.h:
table checksum background:
NISAM checksum code moved from mysys to isam/ - it's obsolete
isam/open.c:
table checksum background:
NISAM checksum code moved from mysys to isam/ - it's obsolete
isam/pack_isam.c:
table checksum background:
NISAM checksum code moved from mysys to isam/ - it's obsolete
myisam/mi_checksum.c:
table checksum background: my_checksum() mysys function
MyISAM checksum code moved to mysys
mysys/checksum.c:
table checksum background: my_checksum() mysys function
MyISAM checksum code moved to mysys
sql/ha_myisam.cc:
table checksum background: table's checksum accessible from sql layer
sql/ha_myisam.h:
table checksum background: table's checksum accessible from sql layer
sql/handler.h:
table checksum background: table's checksum accessible from sql layer
code cleanup
sql/sql_lex.h:
table checksum background: table's checksum accessible from sql layer
code cleanup
sql/sql_select.cc:
warning removed
sql/sql_show.cc:
SHOW TABLE STATUS shows checksum (WL#646)
sql/sql_yacc.yy:
cleanup
(DROP TABLES syntax added as a side effect :))
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 4f1021232a4..d2cbdec36f1 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -236,6 +236,8 @@ int ha_myisam::open(const char *name, int mode, uint test_if_locked) VOID(mi_extra(file, HA_EXTRA_WAIT_LOCK, 0)); if (!table->db_record_offset) int_table_flags|=HA_REC_NOT_IN_SEQ; + if (file->s->options & (HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD)) + int_table_flags|=HA_HAS_CHECKSUM; return (0); } @@ -1398,3 +1400,9 @@ int ha_myisam::ft_read(byte * buf) table->status=error ? STATUS_NOT_FOUND: 0; return error; } + +uint ha_myisam::checksum() const +{ + return (uint)file->s->state.checksum; +} + |