summaryrefslogtreecommitdiff
path: root/storage/myisam/mi_write.c
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-10-18 12:27:07 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-18 12:27:07 -0700
commitf1a71b68155c9ef7c4c8b4a8111aa545a5f8100f (patch)
tree6f5592e4945aef1c47cace17e088d7d399415376 /storage/myisam/mi_write.c
parente5211e0cde7573ee9009f22aa637a0757ccb0569 (diff)
downloadmariadb-git-f1a71b68155c9ef7c4c8b4a8111aa545a5f8100f.tar.gz
bugfix: missing restore_record when modifying roles_mapping() table.
(and an assert in myisam to catch these bugs easier in the future) update tests/results
Diffstat (limited to 'storage/myisam/mi_write.c')
-rw-r--r--storage/myisam/mi_write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/myisam/mi_write.c b/storage/myisam/mi_write.c
index cdf4f5d2bf8..5ac5a128918 100644
--- a/storage/myisam/mi_write.c
+++ b/storage/myisam/mi_write.c
@@ -55,6 +55,10 @@ int mi_write(MI_INFO *info, uchar *record)
DBUG_EXECUTE_IF("myisam_pretend_crashed_table_on_usage",
mi_print_error(info->s, HA_ERR_CRASHED);
DBUG_RETURN(my_errno= HA_ERR_CRASHED););
+
+ /* it's always a bug to try to write a record with the deleted flag set */
+ DBUG_ASSERT(info->s->data_file_type != STATIC_RECORD || *record);
+
if (share->options & HA_OPTION_READ_ONLY_DATA)
{
DBUG_RETURN(my_errno=EACCES);