~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: mordred
  • Date: 2010-04-20 00:04:22 UTC
  • mfrom: (1491 bad-staging)
  • mto: This revision was merged to the branch mainline in revision 1498.
  • Revision ID: mordred@orisndriz09-20100420000422-if6mil1596804mrj
Merged up with build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
  enum enum_mark_columns mark_used_columns;
368
368
  inline void* alloc(size_t size)
369
369
  {
370
 
    return alloc_root(mem_root,size);
 
370
    return mem_root->alloc_root(size);
371
371
  }
372
372
  inline void* calloc(size_t size)
373
373
  {
374
374
    void *ptr;
375
 
    if ((ptr= alloc_root(mem_root,size)))
 
375
    if ((ptr= mem_root->alloc_root(size)))
376
376
      memset(ptr, 0, size);
377
377
    return ptr;
378
378
  }
379
379
  inline char *strdup(const char *str)
380
380
  {
381
 
    return strdup_root(mem_root,str);
 
381
    return mem_root->strdup_root(str);
382
382
  }
383
383
  inline char *strmake(const char *str, size_t size)
384
384
  {
385
 
    return strmake_root(mem_root,str,size);
 
385
    return mem_root->strmake_root(str,size);
386
386
  }
387
387
  inline void *memdup(const void *str, size_t size)
388
388
  {
389
 
    return memdup_root(mem_root,str,size);
 
389
    return mem_root->memdup_root(str, size);
390
390
  }
391
391
  inline void *memdup_w_gap(const void *str, size_t size, uint32_t gap)
392
392
  {
393
393
    void *ptr;
394
 
    if ((ptr= alloc_root(mem_root,size+gap)))
 
394
    if ((ptr= mem_root->alloc_root(size + gap)))
395
395
      memcpy(ptr,str,size);
396
396
    return ptr;
397
397
  }
1493
1493
 
1494
1494
  static void unlink(Session *session);
1495
1495
 
 
1496
  void get_xid(DRIZZLE_XID *xid); // Innodb only
1496
1497
};
1497
1498
 
1498
1499
class JOIN;