~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_class.cc

  • Committer: Brian Aker
  • Date: 2008-07-20 07:36:57 UTC
  • Revision ID: brian@tangent.org-20080720073657-qrzqnfu31mut8vjd
my_bool...

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
****************************************************************************/
68
68
 
69
69
extern "C" uchar *get_var_key(user_var_entry *entry, size_t *length,
70
 
                              my_bool not_used __attribute__((unused)))
 
70
                              bool not_used __attribute__((unused)))
71
71
{
72
72
  *length= entry->name.length;
73
73
  return (uchar*) entry->name.str;
2419
2419
pthread_mutex_t LOCK_xid_cache;
2420
2420
HASH xid_cache;
2421
2421
 
2422
 
extern "C" uchar *xid_get_hash_key(const uchar *, size_t *, my_bool);
 
2422
extern "C" uchar *xid_get_hash_key(const uchar *, size_t *, bool);
2423
2423
extern "C" void xid_free_hash(void *);
2424
2424
 
2425
2425
uchar *xid_get_hash_key(const uchar *ptr, size_t *length,
2463
2463
bool xid_cache_insert(XID *xid, enum xa_states xa_state)
2464
2464
{
2465
2465
  XID_STATE *xs;
2466
 
  my_bool res;
 
2466
  bool res;
2467
2467
  pthread_mutex_lock(&LOCK_xid_cache);
2468
2468
  if (hash_search(&xid_cache, xid->key(), xid->key_length()))
2469
2469
    res=0;
2486
2486
  pthread_mutex_lock(&LOCK_xid_cache);
2487
2487
  assert(hash_search(&xid_cache, xid_state->xid.key(),
2488
2488
                          xid_state->xid.key_length())==0);
2489
 
  my_bool res=my_hash_insert(&xid_cache, (uchar*)xid_state);
 
2489
  bool res=my_hash_insert(&xid_cache, (uchar*)xid_state);
2490
2490
  pthread_mutex_unlock(&LOCK_xid_cache);
2491
2491
  return res;
2492
2492
}