~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.h

Remove dead memset call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
class Session;
29
29
class Table;
30
30
class TableList;
31
 
typedef struct drizzled_lock_st DRIZZLE_LOCK;
 
31
class DrizzleLock;
32
32
 
33
 
DRIZZLE_LOCK *mysql_lock_tables(Session *session, Table **table, uint32_t count,
34
 
                                uint32_t flags, bool *need_reopen);
 
33
DrizzleLock *mysql_lock_tables(Session *session, Table **table, uint32_t count,
 
34
                               uint32_t flags, bool *need_reopen);
35
35
/* mysql_lock_tables() and open_table() flags bits */
36
36
#define DRIZZLE_LOCK_IGNORE_GLOBAL_READ_LOCK      0x0001
37
37
#define DRIZZLE_LOCK_IGNORE_FLUSH                 0x0002
38
38
#define DRIZZLE_LOCK_NOTIFY_IF_NEED_REOPEN        0x0004
39
39
#define DRIZZLE_OPEN_TEMPORARY_ONLY               0x0008
40
40
 
41
 
void mysql_unlock_tables(Session *session, DRIZZLE_LOCK *sql_lock);
42
 
void mysql_unlock_read_tables(Session *session, DRIZZLE_LOCK *sql_lock);
 
41
void mysql_unlock_tables(Session *session, DrizzleLock *sql_lock);
 
42
void mysql_unlock_read_tables(Session *session, DrizzleLock *sql_lock);
43
43
void mysql_unlock_some_tables(Session *session, Table **table, uint32_t count);
44
44
void mysql_lock_remove(Session *session, Table *table);
45
45
void mysql_lock_abort(Session *session, Table *table);
50
50
                              bool is_not_commit);
51
51
void start_waiting_global_read_lock(Session *session);
52
52
bool make_global_read_lock_block_commit(Session *session);
53
 
bool set_protect_against_global_read_lock(void);
54
 
void unset_protect_against_global_read_lock(void);
55
53
void broadcast_refresh(void);
56
54
 
57
55
/* Lock based on name */
58
 
int lock_table_name(Session *session, TableList *table_list, bool check_in_use);
59
56
void unlock_table_name(TableList *table_list);
60
57
bool wait_for_locked_table_names(Session *session, TableList *table_list);
61
 
bool lock_table_names(Session *session, TableList *table_list);
62
58
void unlock_table_names(TableList *table_list, TableList *last_table);
63
59
bool lock_table_names_exclusively(Session *session, TableList *table_list);
64
60