~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Brian Aker
  • Date: 2009-01-23 06:19:11 UTC
  • mfrom: (779.1.29 devel)
  • mto: (779.3.3 devel)
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: brian@tangent.org-20090123061911-59es83nxzlyvh5fi
Merge of Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
  return(error);
188
188
}
189
189
 
190
 
static bool dropdb_handlerton(Session *unused1 __attribute__((unused)),
 
190
static bool dropdb_handlerton(Session *,
191
191
                              plugin_ref plugin,
192
192
                              void *path)
193
193
{
205
205
 
206
206
 
207
207
static bool closecon_handlerton(Session *session, plugin_ref plugin,
208
 
                                void *unused __attribute__((unused)))
 
208
                                void *)
209
209
{
210
210
  handlerton *hton= plugin_data(plugin, handlerton *);
211
211
  /*
877
877
  int result;
878
878
};
879
879
 
880
 
static bool xacommit_handlerton(Session *unused1 __attribute__((unused)),
 
880
static bool xacommit_handlerton(Session *,
881
881
                                plugin_ref plugin,
882
882
                                void *arg)
883
883
{
890
890
  return false;
891
891
}
892
892
 
893
 
static bool xarollback_handlerton(Session *unused1 __attribute__((unused)),
 
893
static bool xarollback_handlerton(Session *,
894
894
                                  plugin_ref plugin,
895
895
                                  void *arg)
896
896
{
940
940
  bool dry_run;
941
941
};
942
942
 
943
 
static bool xarecover_handlerton(Session *unused __attribute__((unused)),
 
943
static bool xarecover_handlerton(Session *,
944
944
                                 plugin_ref plugin,
945
945
                                 void *arg)
946
946
{
1122
1122
    always 0
1123
1123
*/
1124
1124
static bool release_temporary_latches(Session *session, plugin_ref plugin,
1125
 
                                      void *unused __attribute__((unused)))
 
1125
                                      void *)
1126
1126
{
1127
1127
  handlerton *hton= plugin_data(plugin, handlerton *);
1128
1128
 
1280
1280
}
1281
1281
 
1282
1282
 
1283
 
static bool flush_handlerton(Session *session __attribute__((unused)),
 
1283
static bool flush_handlerton(Session *,
1284
1284
                             plugin_ref plugin,
1285
 
                             void *arg __attribute__((unused)))
 
1285
                             void *)
1286
1286
{
1287
1287
  handlerton *hton= plugin_data(plugin, handlerton *);
1288
1288
  if (hton->state == SHOW_OPTION_YES && hton->flush_logs &&
1347
1347
 
1348
1348
bool
1349
1349
Ha_delete_table_error_handler::
1350
 
handle_error(uint32_t sql_errno  __attribute__((unused)),
 
1350
handle_error(uint32_t ,
1351
1351
             const char *message,
1352
 
             DRIZZLE_ERROR::enum_warning_level level __attribute__((unused)),
1353
 
             Session *session __attribute__((unused)))
 
1352
             DRIZZLE_ERROR::enum_warning_level ,
 
1353
             Session *)
1354
1354
{
1355
1355
  /* Grab the error message */
1356
1356
  strncpy(buff, message, sizeof(buff)-1);
1365
1365
  int error;
1366
1366
};
1367
1367
 
1368
 
static bool deletetable_handlerton(Session *unused1 __attribute__((unused)),
 
1368
static bool deletetable_handlerton(Session *,
1369
1369
                                   plugin_ref plugin,
1370
1370
                                   void *args)
1371
1371
{
2016
2016
  @param first_value         (OUT) the first value reserved by the handler
2017
2017
  @param nb_reserved_values  (OUT) how many values the handler reserved
2018
2018
*/
2019
 
void handler::get_auto_increment(uint64_t offset __attribute__((unused)),
2020
 
                                 uint64_t increment __attribute__((unused)),
2021
 
                                 uint64_t nb_desired_values __attribute__((unused)),
 
2019
void handler::get_auto_increment(uint64_t ,
 
2020
                                 uint64_t ,
 
2021
                                 uint64_t ,
2022
2022
                                 uint64_t *first_value,
2023
2023
                                 uint64_t *nb_reserved_values)
2024
2024
{
2316
2316
  @return
2317
2317
    Returns true if this is a temporary error
2318
2318
*/
2319
 
bool handler::get_error_message(int error __attribute__((unused)),
2320
 
                                String* buf __attribute__((unused)))
 
2319
bool handler::get_error_message(int ,
 
2320
                                String* )
2321
2321
{
2322
2322
  return false;
2323
2323
}
2886
2886
/**
2887
2887
  Init a key cache if it has not been initied before.
2888
2888
*/
2889
 
int ha_init_key_cache(const char *name __attribute__((unused)),
 
2889
int ha_init_key_cache(const char *,
2890
2890
                      KEY_CACHE *key_cache)
2891
2891
{
2892
2892
  if (!key_cache->key_cache_inited)
3117
3117
ha_rows
3118
3118
handler::multi_range_read_info_const(uint32_t keyno, RANGE_SEQ_IF *seq,
3119
3119
                                     void *seq_init_param,
3120
 
                                     uint32_t n_ranges_arg __attribute__((unused)),
 
3120
                                     uint32_t ,
3121
3121
                                     uint32_t *bufsz, uint32_t *flags, COST_VECT *cost)
3122
3122
{
3123
3123
  KEY_MULTI_RANGE range;
3269
3269
int
3270
3270
handler::multi_range_read_init(RANGE_SEQ_IF *seq_funcs, void *seq_init_param,
3271
3271
                               uint32_t n_ranges, uint32_t mode,
3272
 
                               HANDLER_BUFFER *buf __attribute__((unused)))
 
3272
                               HANDLER_BUFFER *)
3273
3273
{
3274
3274
  mrr_iter= seq_funcs->init(seq_init_param, n_ranges, mode);
3275
3275
  mrr_funcs= *seq_funcs;
3486
3486
  @retval other  Error
3487
3487
*/
3488
3488
 
3489
 
int DsMrr_impl::dsmrr_fill_buffer(handler *unused __attribute__((unused)))
 
3489
int DsMrr_impl::dsmrr_fill_buffer(handler *)
3490
3490
{
3491
3491
  char *range_info;
3492
3492
  int res = 0;
3941
3941
int handler::read_range_first(const key_range *start_key,
3942
3942
                              const key_range *end_key,
3943
3943
                              bool eq_range_arg,
3944
 
                              bool sorted  __attribute__((unused)))
 
3944
                              bool )
3945
3945
{
3946
3946
  int result;
3947
3947
 
4072
4072
  @retval
4073
4073
    pointer             pointer to TYPELIB structure
4074
4074
*/
4075
 
static bool exts_handlerton(Session *unused __attribute__((unused)),
 
4075
static bool exts_handlerton(Session *,
4076
4076
                            plugin_ref plugin,
4077
4077
                            void *arg)
4078
4078
{