31
typedef struct drizzled_lock_st DRIZZLE_LOCK;
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
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);