~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/insert_select.cc

  • Committer: Monty Taylor
  • Date: 2011-04-06 21:23:45 UTC
  • mfrom: (2268.1.4 build)
  • Revision ID: mordred@inaugust.com-20110406212345-a7w7nkcuq60ybi4z
Merge Monty: Windows Fixes
Merge Olaf: open_table refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
         TODO: this is a workaround. right way will be move invalidating in
84
84
         the unlock procedure.
85
85
       */
86
 
      if (first_table->lock_type == TL_WRITE_CONCURRENT_INSERT && session().lock)
 
86
      if (first_table->lock_type == TL_WRITE_CONCURRENT_INSERT && session().open_tables.lock)
87
87
      {
88
88
        /* INSERT ... SELECT should invalidate only the very first table */
89
89
        TableList *save_table= first_table->next_local;