~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 05:18:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2009.
  • Revision ID: brian@tangent.org-20101218051830-lswb13hfiqbia74o
Adding user identifier that makes use of a shared ptr to handle concurrency
issues around looking at the state of a connection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
  virtual bool authenticate(void)
100
100
  {
101
101
    printDebug("authenticate");
102
 
    session->getSecurityContext().setUser(username);
 
102
    identifier::User::shared_ptr user= identifier::User::make_shared();
 
103
    user->setUser(username);
 
104
    session->setUser(user);
103
105
    return session->checkUser(password, db);
104
106
  }
105
107