~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Stewart Smith
  • Date: 2008-11-13 06:47:49 UTC
  • mto: This revision was merged to the branch mainline in revision 587.
  • Revision ID: stewart@flamingspork.com-20081113064749-cygrme7e0s1t1rre
rename and delete tabledefinition protobuf file

Show diffs side-by-side

added added

removed removed

Lines of Context:
957
957
      extension= strchr(file->name, '\0');
958
958
    if (find_type(extension, &deletable_extentions,1+2) <= 0)
959
959
    {
960
 
      if (find_type(extension, ha_known_exts(),1+2) <= 0)
961
 
        found_other_files++;
 
960
      /*
 
961
        ass ass ass.
 
962
 
 
963
        strange checking for magic extensions that are then deleted if
 
964
        not reg_ext (i.e. .frm).
 
965
 
 
966
        and (previously) we'd err out on drop database if files not matching
 
967
        engine ha_known_exts() or deletable_extensions were present.
 
968
 
 
969
        presumably this was to avoid deleting other user data... except if that
 
970
        data happened to be in files ending in .BAK, .opt or .TMD. *fun*
 
971
       */
 
972
      find_type(extension, ha_known_exts(),1+2);
962
973
      continue;
963
974
    }
964
975
    /* just for safety we use files_charset_info */