~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

Merge in security refactor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
479
479
   */
480
480
  char *thread_stack;
481
481
 
482
 
  /**
483
 
    @note
484
 
    Some members of Session (currently 'Statement::db',
485
 
    'query')  are set and alloced by the slave SQL thread
486
 
    (for the Session of that thread); that thread is (and must remain, for now)
487
 
    the only responsible for freeing these 3 members. If you add members
488
 
    here, and you add code to set them in replication, don't forget to
489
 
    free_them_and_set_them_to_0 in replication properly. For details see
490
 
    the 'err:' label of the handle_slave_sql() in sql/slave.cc.
 
482
private:
 
483
  SecurityContext security_ctx;
 
484
public:
 
485
  const SecurityContext& getSecurityContext() const
 
486
  {
 
487
    return security_ctx;
 
488
  }
491
489
 
492
 
    @see handle_slave_sql
493
 
  */
494
 
  Security_context security_ctx;
 
490
  SecurityContext& getSecurityContext()
 
491
  {
 
492
    return security_ctx;
 
493
  }
495
494
 
496
495
  /**
497
496
    Used in error messages to tell user in what part of MySQL we found an