summaryrefslogtreecommitdiff
path: root/myisam/mi_delete_all.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-11 01:40:52 +0300
committermonty@hundin.mysql.fi <>2001-09-11 01:40:52 +0300
commitfa23b20789dc271de6b2638fbea0ccefc333c872 (patch)
tree6a962f88c6b25e60b6f09ab8b8c7eb0cbb47bc22 /myisam/mi_delete_all.c
parentc526f5d2ace049ba9f8cecd4800c44b0c41ace17 (diff)
downloadmariadb-git-fa23b20789dc271de6b2638fbea0ccefc333c872.tar.gz
Fixes for German sorting order.
Diffstat (limited to 'myisam/mi_delete_all.c')
-rw-r--r--myisam/mi_delete_all.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/myisam/mi_delete_all.c b/myisam/mi_delete_all.c
index c3ed9455e12..2c506da865f 100644
--- a/myisam/mi_delete_all.c
+++ b/myisam/mi_delete_all.c
@@ -15,7 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* Remove all rows from a MyISAM table */
-/* This only clears the status information; The files are not truncated */
+/* This only clears the status information and truncates the data file */
#include "myisamdef.h"
@@ -50,6 +50,8 @@ int mi_delete_all_rows(MI_INFO *info)
myisam_log_command(MI_LOG_DELETE_ALL,info,(byte*) 0,0,0);
VOID(_mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE));
+ if (my_chsize(info->dfile, 0, MYF(MY_WME)))
+ goto err;
allow_break(); /* Allow SIGHUP & SIGINT */
DBUG_RETURN(0);