~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_delete_all.cc

  • Committer: Brian Aker
  • Date: 2010-07-30 20:31:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1679.
  • Revision ID: brian@gaz-20100730203119-89g2ye4zwnvcacxg
First pass in encapsulating row

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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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->getKeyCache(), share->kfile, FLUSH_IGNORE_CHANGED);
 
53
  flush_key_blocks(share->key_cache, 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);