~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Monty Taylor
  • Date: 2008-10-12 21:19:33 UTC
  • mfrom: (499.1.7 codestyle)
  • mto: This revision was merged to the branch mainline in revision 511.
  • Revision ID: monty@inaugust.com-20081012211933-w67dro6ftrjdxw5f
Merged in first pass of sql_bitmap removal. (and some other cleanups.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
  disk_buff= NULL;
306
306
 
307
307
  strxmov(path, share->normalized_path.str, reg_ext, NULL);
308
 
  if ((file= my_open(path, O_RDONLY, MYF(0))) < 0)
 
308
  if ((file= open(path, O_RDONLY)) < 0)
309
309
  {
310
310
    /*
311
311
      We don't try to open 5.0 unencoded name, if
316
316
        
317
317
      - non-encoded db or table name contain "#mysql50#" prefix.
318
318
        This kind of tables must have been opened only by the
319
 
        my_open() above.
 
319
        open() above.
320
320
    */
321
321
    if (strchr(share->table_name.str, '@') ||
322
322
        !strncmp(share->db.str, MYSQL50_TABLE_NAME_PREFIX,
342
342
      so no need to check the old file name.
343
343
    */
344
344
    if (length == share->normalized_path.length ||
345
 
        ((file= my_open(path, O_RDONLY, MYF(0))) < 0))
 
345
        ((file= open(path, O_RDONLY)) < 0))
346
346
      goto err_not_open;
347
347
 
348
348
    /* Unencoded 5.0 table name found */
1911
1911
  uint32_t i;
1912
1912
 
1913
1913
  if (create_info->options & HA_LEX_CREATE_TMP_TABLE)
1914
 
    create_flags|= O_EXCL | O_NOFOLLOW;
 
1914
    create_flags|= O_EXCL;
1915
1915
 
1916
1916
  /* Fix this when we have new .frm files;  Current limit is 4G rows (QQ) */
1917
1917
  if (create_info->max_rows > UINT32_MAX)
3140
3140
 
3141
3141
  *dbt= DB_TYPE_UNKNOWN;
3142
3142
 
3143
 
  if ((file= my_open(path, O_RDONLY, MYF(0))) < 0)
 
3143
  if ((file= open(path, O_RDONLY)) < 0)
3144
3144
    return false;
3145
3145
  error= my_read(file, (unsigned char*) header, sizeof(header), MYF(MY_NABP));
3146
3146
  my_close(file, MYF(MY_WME));