~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_delete_all.cc

  • Committer: Andrew Hutchings
  • Date: 2011-01-21 11:23:19 UTC
  • mto: (2100.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2101.
  • Revision ID: andrew@linuxjedi.co.uk-20110121112319-nj1cvg0yt3nnf2rr
Add errors page to drizzle client docs
Add link to specific error in migration docs
Minor changes to migration docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
/* Remove all rows from a MyISAM table */
17
17
/* This clears the status information and truncates files */
50
50
    If we are using delayed keys or if the user has done changes to the tables
51
51
    since it was locked then there may be key blocks in the key cache
52
52
  */
53
 
  flush_key_blocks(share->key_cache, share->kfile, FLUSH_IGNORE_CHANGED);
 
53
  flush_key_blocks(share->getKeyCache(), share->kfile, FLUSH_IGNORE_CHANGED);
54
54
  if (ftruncate(info->dfile, 0) || ftruncate(share->kfile, share->base.keystart))
55
55
    goto err;
56
56
  _mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE);