~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-05-15 01:19:45 UTC
  • Revision ID: brian@gaz-20100515011945-uxhf94vi0tzm0vq6
Rename of KEY to KeyInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
  uint64_t bytes_received;
231
231
  uint64_t bytes_sent;
232
232
  ulong com_other;
233
 
  ulong com_stat[(uint32_t) SQLCOM_END];
234
233
  ulong created_tmp_disk_tables;
235
234
  ulong created_tmp_tables;
236
235
  ulong ha_commit_count;
367
366
  enum enum_mark_columns mark_used_columns;
368
367
  inline void* alloc(size_t size)
369
368
  {
370
 
    return alloc_root(mem_root,size);
 
369
    return mem_root->alloc_root(size);
371
370
  }
372
371
  inline void* calloc(size_t size)
373
372
  {
374
373
    void *ptr;
375
 
    if ((ptr= alloc_root(mem_root,size)))
 
374
    if ((ptr= mem_root->alloc_root(size)))
376
375
      memset(ptr, 0, size);
377
376
    return ptr;
378
377
  }
379
378
  inline char *strdup(const char *str)
380
379
  {
381
 
    return strdup_root(mem_root,str);
 
380
    return mem_root->strdup_root(str);
382
381
  }
383
382
  inline char *strmake(const char *str, size_t size)
384
383
  {
385
 
    return strmake_root(mem_root,str,size);
 
384
    return mem_root->strmake_root(str,size);
386
385
  }
387
386
  inline void *memdup(const void *str, size_t size)
388
387
  {
389
 
    return memdup_root(mem_root,str,size);
 
388
    return mem_root->memdup_root(str, size);
390
389
  }
391
390
  inline void *memdup_w_gap(const void *str, size_t size, uint32_t gap)
392
391
  {
393
392
    void *ptr;
394
 
    if ((ptr= alloc_root(mem_root,size+gap)))
 
393
    if ((ptr= mem_root->alloc_root(size + gap)))
395
394
      memcpy(ptr,str,size);
396
395
    return ptr;
397
396
  }
1421
1420
  bool lock_table_name_if_not_cached(const char *db,
1422
1421
                                     const char *table_name, Table **table);
1423
1422
 
1424
 
  typedef drizzled::hash_map<std::string, message::Table> TableMessageCache;
 
1423
  typedef unordered_map<std::string, message::Table> TableMessageCache;
1425
1424
  TableMessageCache table_message_cache;
1426
1425
 
1427
1426
  bool storeTableMessage(TableIdentifier &identifier, message::Table &table_message);
1475
1474
  int setup_conds(TableList *leaves, COND **conds);
1476
1475
  int lock_tables(TableList *tables, uint32_t count, bool *need_reopen);
1477
1476
 
 
1477
  Table *create_virtual_tmp_table(List<CreateField> &field_list);
 
1478
 
 
1479
 
1478
1480
 
1479
1481
  /**
1480
1482
    Return the default storage engine
1493
1495
 
1494
1496
  static void unlink(Session *session);
1495
1497
 
 
1498
  void get_xid(DRIZZLE_XID *xid); // Innodb only
1496
1499
};
1497
1500
 
1498
1501
class JOIN;