diff options
author | Sergey Vojtovich <svoj@sun.com> | 2009-11-25 16:25:01 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2009-11-25 16:25:01 +0400 |
commit | 187958a9516fd5d1054682590b1925db857168d8 (patch) | |
tree | 0ee4d96f089106d4e6d64f0f23d003b719e53367 /storage/myisammrg/ha_myisammrg.cc | |
parent | bd6467805a4d232718589f8ba0f2b84493843aba (diff) | |
download | mariadb-git-187958a9516fd5d1054682590b1925db857168d8.tar.gz |
Backport from 6.0-codebase.
WL#3951 - MyISAM: Additional Error Logs for Data Corruption
When table corruption is detected, in addition to current error message
provide following information:
- list of threads (and queries) accessing a table;
- thread_id of a thread that detected corruption;
- source file name and line number where this corruption was detected;
- optional extra information (string).
Diffstat (limited to 'storage/myisammrg/ha_myisammrg.cc')
-rw-r--r-- | storage/myisammrg/ha_myisammrg.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/myisammrg/ha_myisammrg.cc b/storage/myisammrg/ha_myisammrg.cc index 471e2243aac..b28529b08e7 100644 --- a/storage/myisammrg/ha_myisammrg.cc +++ b/storage/myisammrg/ha_myisammrg.cc @@ -1009,7 +1009,10 @@ int ha_myisammrg::extra_opt(enum ha_extra_function operation, ulong cache_size) int ha_myisammrg::external_lock(THD *thd, int lock_type) { + MYRG_TABLE *tmp; DBUG_ASSERT(this->file->children_attached); + for (tmp= file->open_tables; tmp != file->end_table; tmp++) + tmp->table->in_use.data= thd; return myrg_lock_database(file,lock_type); } |