~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/ha_tina.cc

  • Committer: Stewart Smith
  • Date: 2008-07-09 01:40:54 UTC
  • mfrom: (105 drizzle)
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: stewart@flamingspork.com-20080709014054-xfgfzirbhqzrzkkj
mergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
  return 0;
121
121
}
122
122
 
123
 
static int tina_done_func(void *p)
 
123
static int tina_done_func(void *p __attribute__((__unused__)))
124
124
{
125
125
  hash_free(&tina_open_tables);
126
126
  pthread_mutex_destroy(&tina_mutex);
132
132
/*
133
133
  Simple lock controls.
134
134
*/
135
 
static TINA_SHARE *get_share(const char *table_name, TABLE *table)
 
135
static TINA_SHARE *get_share(const char *table_name,
 
136
                             TABLE *table __attribute__((__unused__)))
136
137
{
137
138
  TINA_SHARE *share;
138
139
  char meta_file_name[FN_REFLEN];
459
460
  Encode a buffer into the quoted format.
460
461
*/
461
462
 
462
 
int ha_tina::encode_quote(uchar *buf)
 
463
int ha_tina::encode_quote(uchar *buf __attribute__((__unused__)))
463
464
{
464
465
  char attribute_buffer[1024];
465
466
  String attribute(attribute_buffer, sizeof(attribute_buffer),
734
735
  for CSV engine. For more details see mysys/thr_lock.c
735
736
*/
736
737
 
737
 
void tina_get_status(void* param, int concurrent_insert)
 
738
void tina_get_status(void* param,
 
739
                     int concurrent_insert __attribute__((__unused__)))
738
740
{
739
741
  ha_tina *tina= (ha_tina*) param;
740
742
  tina->get_status();
747
749
}
748
750
 
749
751
/* this should exist and return 0 for concurrent insert to work */
750
 
my_bool tina_check_status(void* param)
 
752
my_bool tina_check_status(void* param __attribute__((__unused__)))
751
753
{
752
754
  return 0;
753
755
}
814
816
  this will not be called for every request. Any sort of positions
815
817
  that need to be reset should be kept in the ::extra() call.
816
818
*/
817
 
int ha_tina::open(const char *name, int mode, uint open_options)
 
819
int ha_tina::open(const char *name, int mode __attribute__((__unused__)),
 
820
                  uint open_options)
818
821
{
819
822
  DBUG_ENTER("ha_tina::open");
820
823
 
930
933
  This will be called in a table scan right before the previous ::rnd_next()
931
934
  call.
932
935
*/
933
 
int ha_tina::update_row(const uchar * old_data, uchar * new_data)
 
936
int ha_tina::update_row(const uchar * old_data __attribute__((__unused__)),
 
937
                        uchar * new_data)
934
938
{
935
939
  int size;
936
940
  int rc= -1;
980
984
  The table will then be deleted/positioned based on the ORDER (so RANDOM,
981
985
  DESC, ASC).
982
986
*/
983
 
int ha_tina::delete_row(const uchar * buf)
 
987
int ha_tina::delete_row(const uchar * buf __attribute__((__unused__)))
984
988
{
985
989
  DBUG_ENTER("ha_tina::delete_row");
986
990
  ha_statistic_increment(&SSV::ha_delete_count);
1060
1064
 
1061
1065
*/
1062
1066
 
1063
 
int ha_tina::rnd_init(bool scan)
 
1067
int ha_tina::rnd_init(bool scan __attribute__((__unused__)))
1064
1068
{
1065
1069
  DBUG_ENTER("ha_tina::rnd_init");
1066
1070
 
1124
1128
  its just a position. Look at the bdb code if you want to see a case
1125
1129
  where something other then a number is stored.
1126
1130
*/
1127
 
void ha_tina::position(const uchar *record)
 
1131
void ha_tina::position(const uchar *record __attribute__((__unused__)))
1128
1132
{
1129
1133
  DBUG_ENTER("ha_tina::position");
1130
1134
  my_store_ptr(ref, ref_length, current_position);
1150
1154
  Currently this table handler doesn't implement most of the fields
1151
1155
  really needed. SHOW also makes use of this data
1152
1156
*/
1153
 
int ha_tina::info(uint flag)
 
1157
int ha_tina::info(uint flag __attribute__((__unused__)))
1154
1158
{
1155
1159
  DBUG_ENTER("ha_tina::info");
1156
1160
  /* This is a lie, but you don't want the optimizer to see zero or 1 */
1341
1345
         rows (after the first bad one) as well.
1342
1346
*/
1343
1347
 
1344
 
int ha_tina::repair(THD* thd, HA_CHECK_OPT* check_opt)
 
1348
int ha_tina::repair(THD* thd,
 
1349
                    HA_CHECK_OPT* check_opt __attribute__((__unused__)))
1345
1350
{
1346
1351
  char repaired_fname[FN_REFLEN];
1347
1352
  uchar *buf;
1488
1493
  Called by the database to lock the table. Keep in mind that this
1489
1494
  is an internal lock.
1490
1495
*/
1491
 
THR_LOCK_DATA **ha_tina::store_lock(THD *thd,
 
1496
THR_LOCK_DATA **ha_tina::store_lock(THD *thd __attribute__((__unused__)),
1492
1497
                                    THR_LOCK_DATA **to,
1493
1498
                                    enum thr_lock_type lock_type)
1494
1499
{
1504
1509
*/
1505
1510
 
1506
1511
int ha_tina::create(const char *name, TABLE *table_arg,
1507
 
                    HA_CREATE_INFO *create_info)
 
1512
                    HA_CREATE_INFO *create_info __attribute__((__unused__)))
1508
1513
{
1509
1514
  char name_buff[FN_REFLEN];
1510
1515
  File create_file;
1541
1546
  DBUG_RETURN(0);
1542
1547
}
1543
1548
 
1544
 
int ha_tina::check(THD* thd, HA_CHECK_OPT* check_opt)
 
1549
int ha_tina::check(THD* thd,
 
1550
                   HA_CHECK_OPT* check_opt __attribute__((__unused__)))
1545
1551
{
1546
1552
  int rc= 0;
1547
1553
  uchar *buf;
1591
1597
}
1592
1598
 
1593
1599
 
1594
 
bool ha_tina::check_if_incompatible_data(HA_CREATE_INFO *info,
1595
 
                                           uint table_changes)
 
1600
bool ha_tina::check_if_incompatible_data(HA_CREATE_INFO *info __attribute__((__unused__)),
 
1601
                                         uint table_changes __attribute__((__unused__)))
1596
1602
{
1597
1603
  return COMPATIBLE_DATA_YES;
1598
1604
}