~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.cc

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
*/
75
75
#include <drizzled/server_includes.h>
76
76
#include <drizzled/error.h>
 
77
#include <mysys/hash.h>
 
78
#include <mysys/thr_lock.h>
 
79
#include <drizzled/session.h>
 
80
#include <drizzled/sql_base.h>
77
81
 
78
82
/**
79
83
  @defgroup Locking Locking
86
90
#define GET_LOCK_UNLOCK         1
87
91
#define GET_LOCK_STORE_LOCKS    2
88
92
 
89
 
static DRIZZLE_LOCK *get_lock_data(Session *session, Table **table,uint32_t count,
90
 
                                 uint32_t flags, Table **write_locked);
 
93
static DRIZZLE_LOCK *get_lock_data(Session *session, Table **table,
 
94
                                   uint32_t count,
 
95
                                   uint32_t flags, Table **write_locked);
91
96
static int lock_external(Session *session, Table **table,uint32_t count);
92
97
static int unlock_external(Session *session, Table **table,uint32_t count);
93
98
static void print_lock_error(int error, const char *);