~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.cc

  • Committer: Brian Aker
  • Date: 2010-05-20 06:34:25 UTC
  • mto: (1552.1.1 new-staging)
  • mto: This revision was merged to the branch mainline in revision 1553.
  • Revision ID: brian@gaz-20100520063425-0hwu5fx4fmmp2g49
Partial encapsulation of TableShare from Table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
709
709
 
710
710
      if (table->in_use == session)
711
711
      {
712
 
        table->s->version= 0;                  // Ensure no one can use this
 
712
        table->getMutableShare()->version= 0;                  // Ensure no one can use this
713
713
        table->locked_by_name= true;
714
714
        return 0;
715
715
      }