~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/myisamdef.h

  • Committer: Brian Aker
  • Date: 2008-08-11 04:55:59 UTC
  • Revision ID: brian@tangent.org-20080811045559-azgfc343y0igyzsz
ulong cleanup, remove log code from myisam.

Show diffs side-by-side

added added

removed removed

Lines of Context:
462
462
extern uchar  myisam_file_magic[], myisam_pack_file_magic[];
463
463
extern uint  myisam_read_vec[], myisam_readnext_vec[];
464
464
extern uint myisam_quick_table_bits;
465
 
extern File myisam_log_file;
466
465
extern ulong myisam_pid;
467
466
 
468
467
        /* This is used by _mi_calc_xxx_key_length och _mi_store_key */
660
659
#define SORT_BUFFER_INIT        (2048L*1024L-MALLOC_OVERHEAD)
661
660
#define MIN_SORT_BUFFER         (4096-MALLOC_OVERHEAD)
662
661
 
663
 
enum myisam_log_commands {
664
 
  MI_LOG_OPEN,MI_LOG_WRITE,MI_LOG_UPDATE,MI_LOG_DELETE,MI_LOG_CLOSE,MI_LOG_EXTRA,MI_LOG_LOCK,MI_LOG_DELETE_ALL
665
 
};
666
 
 
667
 
#define myisam_log(a,b,c,d) if (myisam_log_file >= 0) _myisam_log(a,b,c,d)
668
 
#define myisam_log_command(a,b,c,d,e) if (myisam_log_file >= 0) _myisam_log_command(a,b,c,d,e)
669
 
#define myisam_log_record(a,b,c,d,e) if (myisam_log_file >= 0) _myisam_log_record(a,b,c,d,e)
670
 
 
671
662
#define fast_mi_writeinfo(INFO) if (!(INFO)->s->tot_locks) (void) _mi_writeinfo((INFO),0)
672
663
#define fast_mi_readinfo(INFO) ((INFO)->lock_type == F_UNLCK) && _mi_readinfo((INFO),F_RDLCK,1)
673
664
 
681
672
                                    MI_BLOCK_INFO *info, uchar **rec_buff_p,
682
673
                                    File file, my_off_t filepos);
683
674
extern void _my_store_blob_length(uchar *pos,uint pack_length,uint length);
684
 
extern void _myisam_log(enum myisam_log_commands command,MI_INFO *info,
685
 
                       const uchar *buffert,uint length);
686
 
extern void _myisam_log_command(enum myisam_log_commands command,
687
 
                               MI_INFO *info, const uchar *buffert,
688
 
                               uint length, int result);
689
 
extern void _myisam_log_record(enum myisam_log_commands command,MI_INFO *info,
690
 
                              const uchar *record,my_off_t filepos,
691
 
                              int result);
692
675
extern void mi_report_error(int errcode, const char *file_name);
693
676
extern bool _mi_memmap_file(MI_INFO *info);
694
677
extern void _mi_unmap_file(MI_INFO *info);