~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/insert.cc

  • Committer: Brian Aker
  • Date: 2010-02-14 01:56:51 UTC
  • mto: (1273.16.5 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: brian@gaz-20100214015651-ror9j0xu7dccz0ct
Two fixes for "make dist"

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    return true;
41
41
  }
42
42
 
43
 
  if (! (need_start_waiting= ! session->wait_if_global_read_lock(false, true)))
 
43
  if (! (need_start_waiting= ! wait_if_global_read_lock(session, 0, 1)))
44
44
  {
45
45
    return true;
46
46
  }
47
47
 
48
 
  DRIZZLE_INSERT_START(session->getQueryString()->c_str());
 
48
  DRIZZLE_INSERT_START(session->query);
49
49
 
50
50
  bool res= mysql_insert(session,
51
51
                         all_tables,
59
59
     Release the protection against the global read lock and wake
60
60
     everyone, who might want to set a global read lock.
61
61
   */
62
 
  session->startWaitingGlobalReadLock();
63
 
 
 
62
  start_waiting_global_read_lock(session);
64
63
  return res;
65
64
}
66
65