~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/ha_tina.cc

Merging with main Drizzle tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
  return 0;
120
120
}
121
121
 
122
 
static int tina_done_func(void *p __attribute__((__unused__)))
 
122
static int tina_done_func(void *p __attribute__((unused)))
123
123
{
124
124
  hash_free(&tina_open_tables);
125
125
  pthread_mutex_destroy(&tina_mutex);
132
132
  Simple lock controls.
133
133
*/
134
134
static TINA_SHARE *get_share(const char *table_name,
135
 
                             TABLE *table __attribute__((__unused__)))
 
135
                             TABLE *table __attribute__((unused)))
136
136
{
137
137
  TINA_SHARE *share;
138
138
  char meta_file_name[FN_REFLEN];
449
449
  Encode a buffer into the quoted format.
450
450
*/
451
451
 
452
 
int ha_tina::encode_quote(uchar *buf __attribute__((__unused__)))
 
452
int ha_tina::encode_quote(uchar *buf __attribute__((unused)))
453
453
{
454
454
  char attribute_buffer[1024];
455
455
  String attribute(attribute_buffer, sizeof(attribute_buffer),
724
724
*/
725
725
 
726
726
void tina_get_status(void* param,
727
 
                     int concurrent_insert __attribute__((__unused__)))
 
727
                     int concurrent_insert __attribute__((unused)))
728
728
{
729
729
  ha_tina *tina= (ha_tina*) param;
730
730
  tina->get_status();
737
737
}
738
738
 
739
739
/* this should exist and return 0 for concurrent insert to work */
740
 
bool tina_check_status(void* param __attribute__((__unused__)))
 
740
bool tina_check_status(void* param __attribute__((unused)))
741
741
{
742
742
  return 0;
743
743
}
804
804
  this will not be called for every request. Any sort of positions
805
805
  that need to be reset should be kept in the ::extra() call.
806
806
*/
807
 
int ha_tina::open(const char *name, int mode __attribute__((__unused__)),
 
807
int ha_tina::open(const char *name, int mode __attribute__((unused)),
808
808
                  uint open_options)
809
809
{
810
810
  if (!(share= get_share(name, table)))
917
917
  This will be called in a table scan right before the previous ::rnd_next()
918
918
  call.
919
919
*/
920
 
int ha_tina::update_row(const uchar * old_data __attribute__((__unused__)),
 
920
int ha_tina::update_row(const uchar * old_data __attribute__((unused)),
921
921
                        uchar * new_data)
922
922
{
923
923
  int size;
966
966
  The table will then be deleted/positioned based on the ORDER (so RANDOM,
967
967
  DESC, ASC).
968
968
*/
969
 
int ha_tina::delete_row(const uchar * buf __attribute__((__unused__)))
 
969
int ha_tina::delete_row(const uchar * buf __attribute__((unused)))
970
970
{
971
971
  ha_statistic_increment(&SSV::ha_delete_count);
972
972
 
1045
1045
 
1046
1046
*/
1047
1047
 
1048
 
int ha_tina::rnd_init(bool scan __attribute__((__unused__)))
 
1048
int ha_tina::rnd_init(bool scan __attribute__((unused)))
1049
1049
{
1050
1050
  /* set buffer to the beginning of the file */
1051
1051
  if (share->crashed || init_data_file())
1106
1106
  its just a position. Look at the bdb code if you want to see a case
1107
1107
  where something other then a number is stored.
1108
1108
*/
1109
 
void ha_tina::position(const uchar *record __attribute__((__unused__)))
 
1109
void ha_tina::position(const uchar *record __attribute__((unused)))
1110
1110
{
1111
1111
  my_store_ptr(ref, ref_length, current_position);
1112
1112
  return;
1130
1130
  Currently this table handler doesn't implement most of the fields
1131
1131
  really needed. SHOW also makes use of this data
1132
1132
*/
1133
 
int ha_tina::info(uint flag __attribute__((__unused__)))
 
1133
int ha_tina::info(uint flag __attribute__((unused)))
1134
1134
{
1135
1135
  /* This is a lie, but you don't want the optimizer to see zero or 1 */
1136
1136
  if (!records_is_known && stats.records < 2) 
1303
1303
*/
1304
1304
 
1305
1305
int ha_tina::repair(THD* thd,
1306
 
                    HA_CHECK_OPT* check_opt __attribute__((__unused__)))
 
1306
                    HA_CHECK_OPT* check_opt __attribute__((unused)))
1307
1307
{
1308
1308
  char repaired_fname[FN_REFLEN];
1309
1309
  uchar *buf;
1448
1448
  Called by the database to lock the table. Keep in mind that this
1449
1449
  is an internal lock.
1450
1450
*/
1451
 
THR_LOCK_DATA **ha_tina::store_lock(THD *thd __attribute__((__unused__)),
 
1451
THR_LOCK_DATA **ha_tina::store_lock(THD *thd __attribute__((unused)),
1452
1452
                                    THR_LOCK_DATA **to,
1453
1453
                                    enum thr_lock_type lock_type)
1454
1454
{
1464
1464
*/
1465
1465
 
1466
1466
int ha_tina::create(const char *name, TABLE *table_arg,
1467
 
                    HA_CREATE_INFO *create_info __attribute__((__unused__)))
 
1467
                    HA_CREATE_INFO *create_info __attribute__((unused)))
1468
1468
{
1469
1469
  char name_buff[FN_REFLEN];
1470
1470
  File create_file;
1501
1501
}
1502
1502
 
1503
1503
int ha_tina::check(THD* thd,
1504
 
                   HA_CHECK_OPT* check_opt __attribute__((__unused__)))
 
1504
                   HA_CHECK_OPT* check_opt __attribute__((unused)))
1505
1505
{
1506
1506
  int rc= 0;
1507
1507
  uchar *buf;
1550
1550
}
1551
1551
 
1552
1552
 
1553
 
bool ha_tina::check_if_incompatible_data(HA_CREATE_INFO *info __attribute__((__unused__)),
1554
 
                                         uint table_changes __attribute__((__unused__)))
 
1553
bool ha_tina::check_if_incompatible_data(HA_CREATE_INFO *info __attribute__((unused)),
 
1554
                                         uint table_changes __attribute__((unused)))
1555
1555
{
1556
1556
  return COMPATIBLE_DATA_YES;
1557
1557
}