~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/replace.cc

  • Committer: Brian Aker
  • Date: 2009-11-11 15:49:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1212.
  • Revision ID: brian@gaz-20091111154959-jqu64e48gp9ig3tp
Updating with my change to to DECIMAL from NEWDECIMAL and Stewart's update
for protobuf to correctly store DECIMAL

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
 
21
#include <drizzled/server_includes.h>
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/lock.h>
24
24
#include <drizzled/session.h>
32
32
  TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
33
33
  TableList *all_tables= session->lex->query_tables;
34
34
  assert(first_table == all_tables && first_table != 0);
 
35
  bool need_start_waiting= false;
35
36
 
36
37
  if (insert_precheck(session, all_tables))
37
38
  {
38
39
    return true;
39
40
  }
40
41
 
41
 
  if (session->wait_if_global_read_lock(false, true))
 
42
  if (! (need_start_waiting= ! wait_if_global_read_lock(session, 0, 1)))
42
43
  {
43
44
    return true;
44
45
  }
55
56
     Release the protection against the global read lock and wake
56
57
     everyone, who might want to set a global read lock.
57
58
   */
58
 
  session->startWaitingGlobalReadLock();
59
 
 
 
59
  start_waiting_global_read_lock(session);
60
60
  return res;
61
61
}
62
62