~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/handler.cc

  • Committer: Brian Aker
  • Date: 2008-07-13 20:34:17 UTC
  • Revision ID: brian@tangent.org-20080713203417-mvmtk1cx1r5vowes
More bool conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
  return(error);
464
464
}
465
465
 
466
 
static my_bool dropdb_handlerton(THD *unused1 __attribute__((__unused__)),
467
 
                                 plugin_ref plugin,
468
 
                                 void *path)
 
466
static bool dropdb_handlerton(THD *unused1 __attribute__((__unused__)),
 
467
                              plugin_ref plugin,
 
468
                              void *path)
469
469
{
470
470
  handlerton *hton= plugin_data(plugin, handlerton *);
471
471
  if (hton->state == SHOW_OPTION_YES && hton->drop_database)
480
480
}
481
481
 
482
482
 
483
 
static my_bool closecon_handlerton(THD *thd, plugin_ref plugin,
484
 
                                   void *unused __attribute__((__unused__)))
 
483
static bool closecon_handlerton(THD *thd, plugin_ref plugin,
 
484
                                void *unused __attribute__((__unused__)))
485
485
{
486
486
  handlerton *hton= plugin_data(plugin, handlerton *);
487
487
  /*
1201
1201
  int result;
1202
1202
};
1203
1203
 
1204
 
static my_bool xacommit_handlerton(THD *unused1 __attribute__((__unused__)),
1205
 
                                   plugin_ref plugin,
1206
 
                                   void *arg)
 
1204
static bool xacommit_handlerton(THD *unused1 __attribute__((__unused__)),
 
1205
                                plugin_ref plugin,
 
1206
                                void *arg)
1207
1207
{
1208
1208
  handlerton *hton= plugin_data(plugin, handlerton *);
1209
1209
  if (hton->state == SHOW_OPTION_YES && hton->recover)
1214
1214
  return false;
1215
1215
}
1216
1216
 
1217
 
static my_bool xarollback_handlerton(THD *unused1 __attribute__((__unused__)),
1218
 
                                     plugin_ref plugin,
1219
 
                                     void *arg)
 
1217
static bool xarollback_handlerton(THD *unused1 __attribute__((__unused__)),
 
1218
                                  plugin_ref plugin,
 
1219
                                  void *arg)
1220
1220
{
1221
1221
  handlerton *hton= plugin_data(plugin, handlerton *);
1222
1222
  if (hton->state == SHOW_OPTION_YES && hton->recover)
1264
1264
  bool dry_run;
1265
1265
};
1266
1266
 
1267
 
static my_bool xarecover_handlerton(THD *unused __attribute__((__unused__)),
1268
 
                                    plugin_ref plugin,
1269
 
                                    void *arg)
 
1267
static bool xarecover_handlerton(THD *unused __attribute__((__unused__)),
 
1268
                                 plugin_ref plugin,
 
1269
                                 void *arg)
1270
1270
{
1271
1271
  handlerton *hton= plugin_data(plugin, handlerton *);
1272
1272
  struct xarecover_st *info= (struct xarecover_st *) arg;
1444
1444
  @return
1445
1445
    always 0
1446
1446
*/
1447
 
static my_bool release_temporary_latches(THD *thd, plugin_ref plugin,
1448
 
                                         void *unused __attribute__((__unused__)))
 
1447
static bool release_temporary_latches(THD *thd, plugin_ref plugin,
 
1448
                                      void *unused __attribute__((__unused__)))
1449
1449
{
1450
1450
  handlerton *hton= plugin_data(plugin, handlerton *);
1451
1451
 
1575
1575
}
1576
1576
 
1577
1577
 
1578
 
static my_bool snapshot_handlerton(THD *thd, plugin_ref plugin,
1579
 
                                   void *arg)
 
1578
static bool snapshot_handlerton(THD *thd, plugin_ref plugin, void *arg)
1580
1579
{
1581
1580
  handlerton *hton= plugin_data(plugin, handlerton *);
1582
1581
  if (hton->state == SHOW_OPTION_YES &&
1606
1605
}
1607
1606
 
1608
1607
 
1609
 
static my_bool flush_handlerton(THD *thd __attribute__((__unused__)),
1610
 
                                plugin_ref plugin,
1611
 
                                void *arg __attribute__((__unused__)))
 
1608
static bool flush_handlerton(THD *thd __attribute__((__unused__)),
 
1609
                             plugin_ref plugin,
 
1610
                             void *arg __attribute__((__unused__)))
1612
1611
{
1613
1612
  handlerton *hton= plugin_data(plugin, handlerton *);
1614
1613
  if (hton->state == SHOW_OPTION_YES && hton->flush_logs && 
3295
3294
  size_t *frmlen;
3296
3295
};
3297
3296
 
3298
 
static my_bool discover_handlerton(THD *thd, plugin_ref plugin,
3299
 
                                   void *arg)
 
3297
static bool discover_handlerton(THD *thd, plugin_ref plugin,
 
3298
                                void *arg)
3300
3299
{
3301
3300
  st_discover_args *vargs= (st_discover_args *)arg;
3302
3301
  handlerton *hton= plugin_data(plugin, handlerton *);
3358
3357
  int err;
3359
3358
};
3360
3359
 
3361
 
static my_bool table_exists_in_engine_handlerton(THD *thd, plugin_ref plugin,
3362
 
                                   void *arg)
 
3360
static bool table_exists_in_engine_handlerton(THD *thd, plugin_ref plugin,
 
3361
                                              void *arg)
3363
3362
{
3364
3363
  st_table_exists_in_engine_args *vargs= (st_table_exists_in_engine_args *)arg;
3365
3364
  handlerton *hton= plugin_data(plugin, handlerton *);
4408
4407
  @retval
4409
4408
    pointer             pointer to TYPELIB structure
4410
4409
*/
4411
 
static my_bool exts_handlerton(THD *unused __attribute__((__unused__)),
4412
 
                               plugin_ref plugin,
4413
 
                               void *arg)
 
4410
static bool exts_handlerton(THD *unused __attribute__((__unused__)),
 
4411
                            plugin_ref plugin,
 
4412
                            void *arg)
4414
4413
{
4415
4414
  List<char> *found_exts= (List<char> *) arg;
4416
4415
  handlerton *hton= plugin_data(plugin, handlerton *);