~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/unireg.cc

  • Committer: Brian Aker
  • Date: 2008-07-09 01:20:21 UTC
  • Revision ID: brian@tangent.org-20080709012021-xov711r1a8016x8g
Tablespace removal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
  char buff[128];
115
115
  const uint format_section_header_size= 8;
116
116
  uint format_section_len;
117
 
  uint tablespace_len= 0;
118
117
  Pack_header_error_handler pack_header_error_handler;
119
118
  int error;
120
119
 
173
172
  create_info->extra_size+= 6;
174
173
 
175
174
  /* Add space for storage type and field format array of fields */
176
 
  if (create_info->tablespace)
177
 
    tablespace_len= strlen(create_info->tablespace);
178
175
  format_section_len=
179
 
    format_section_header_size +
180
 
    tablespace_len + 1 +
181
 
    create_fields.elements;
 
176
    format_section_header_size + 1 + create_fields.elements;
182
177
  create_info->extra_size+= format_section_len;
183
178
 
184
179
  tmp_len= system_charset_info->cset->charpos(system_charset_info,
294
289
    /* write header */
295
290
    if (my_write(file, (const uchar*)buff, format_section_header_size, MYF_RW))
296
291
      goto err;
297
 
    /* write tablespace name */
298
 
    if (tablespace_len > 0)
299
 
      if (my_write(file, (const uchar*)create_info->tablespace, tablespace_len, MYF_RW))
300
 
        goto err;
301
292
    buff[0]= 0;
302
293
    if (my_write(file, (const uchar*)buff, 1, MYF_RW))
303
294
      goto err;