From 04fe40393d9d0ef81cc6a770bda67ab67fe4154e Mon Sep 17 00:00:00 2001 From: Marc Alff Date: Fri, 4 Dec 2009 18:26:15 -0700 Subject: WL#2360 Performance schema Part II, engines instrumentation --- storage/myisam/mi_delete_all.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'storage/myisam/mi_delete_all.c') diff --git a/storage/myisam/mi_delete_all.c b/storage/myisam/mi_delete_all.c index cbf5abf7ef5..b8706069ced 100644 --- a/storage/myisam/mi_delete_all.c +++ b/storage/myisam/mi_delete_all.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000-2003, 2005 MySQL AB +/* Copyright (C) 2000-2003, 2005 MySQL AB, 2008-2009 Sun Microsystems, Inc This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -57,8 +57,8 @@ int mi_delete_all_rows(MI_INFO *info) if (share->file_map) _mi_unmap_file(info); #endif - if (my_chsize(info->dfile, 0, 0, MYF(MY_WME)) || - my_chsize(share->kfile, share->base.keystart, 0, MYF(MY_WME)) ) + if (mysql_file_chsize(info->dfile, 0, 0, MYF(MY_WME)) || + mysql_file_chsize(share->kfile, share->base.keystart, 0, MYF(MY_WME))) goto err; (void) _mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE); #ifdef HAVE_MMAP -- cgit v1.2.1