~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:27:09 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032709-oyvfrc6eb8fzj0mr
fix docs warning: docs/unlock.rst:2: (WARNING/2) Title underline too short.

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
/* This file should be included when using myisam_funktions */
17
17
 
18
18
#ifndef PLUGIN_MYISAM_MYISAM_H
19
19
#define PLUGIN_MYISAM_MYISAM_H
20
20
 
 
21
#include "drizzled/identifier/table.h"
 
22
 
21
23
#include <drizzled/key_map.h>
22
24
 
23
25
#include <drizzled/base.h>
162
164
  uint32_t old_options;
163
165
  uint8_t language;
164
166
  bool with_auto_increment;
 
167
 
 
168
  st_mi_create_info():
 
169
    index_file_name(0),
 
170
    data_file_name(0),
 
171
    max_rows(0),
 
172
    reloc_rows(0),
 
173
    auto_increment(0),
 
174
    data_file_length(0),
 
175
    key_file_length(0),
 
176
    old_options(0),
 
177
    language(0),
 
178
    with_auto_increment(0)
 
179
  { }
 
180
 
165
181
} MI_CREATE_INFO;
166
182
 
167
183
struct st_myisam_info;                  /* For referense */
261
277
 
262
278
extern int mi_close(struct st_myisam_info *file);
263
279
extern int mi_delete(struct st_myisam_info *file,const unsigned char *buff);
264
 
extern struct st_myisam_info *mi_open(const char *name,int mode,
 
280
extern struct st_myisam_info *mi_open(const drizzled::TableIdentifier &identifier,
 
281
                                      int mode,
265
282
                                      uint32_t wait_if_locked);
266
283
extern int mi_panic(enum drizzled::ha_panic_function function);
267
284
extern int mi_rfirst(struct st_myisam_info *file,unsigned char *buf,int inx);
448
465
int mi_sort_index(MI_CHECK *param, register MI_INFO *info, char * name);
449
466
int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
450
467
                      const char * name, int rep_quick);
451
 
int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
452
 
                      const char * name, int rep_quick);
453
468
int change_to_newfile(const char * filename, const char * old_ext,
454
469
                      const char * new_ext, uint32_t raid_chunks,
455
470
                      drizzled::myf myflags);
466
481
              drizzled::internal::my_off_t newpos, uint32_t prot_key);
467
482
int write_data_suffix(SORT_INFO *sort_info, bool fix_datafile);
468
483
int test_if_almost_full(MI_INFO *info);
469
 
int recreate_table(MI_CHECK *param, MI_INFO **org_info, char *filename);
470
484
bool mi_test_if_sort_rep(MI_INFO *info, drizzled::ha_rows rows, uint64_t key_map,
471
485
                            bool force);
472
486