summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorunknown <mronstrom@mysql.com>2005-07-20 21:19:01 +0200
committerunknown <mronstrom@mysql.com>2005-07-20 21:19:01 +0200
commitaf1dfb613b7ce6343f461d6f4c3def6af9354814 (patch)
tree25081a8481475ce85bd3d6447b6b3ec6a2cc3d91 /sql/mysql_priv.h
parent6d29b23b15cdb14e0f60804db4eaeb5718cec78a (diff)
downloadmariadb-git-af1dfb613b7ce6343f461d6f4c3def6af9354814.tar.gz
Bug #10600 After review fixes
sql/lock.cc: Used flags immediately in call sql/mysql_priv.h: Added RTFC (short for remove_table_from_cache) for constants and used hex syntax to clarify it is bits in the flags sql/sql_base.cc: Use flags parameter immediately and use flags immediately in call Change to other variant of eternal loop variant sql/sql_table.cc: Use flags immediately in call
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index d28a1d5763f..bc7ec53ccd9 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -606,9 +606,10 @@ bool rename_temporary_table(THD* thd, TABLE *table, const char *new_db,
const char *table_name);
void remove_db_from_cache(const my_string db);
void flush_tables();
-#define OWNED_BY_THD_FLAG 1
-#define WAIT_OTHER_THREAD_FLAG 2
-#define CHECK_KILLED_FLAG 4
+#define RTFC_NO_FLAG 0x0000
+#define RTFC_OWNED_BY_THD_FLAG 0x0001
+#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
+#define RTFC_CHECK_KILLED_FLAG 0x0004
bool remove_table_from_cache(THD *thd, const char *db, const char *table,
uint flags);
bool close_cached_tables(THD *thd, bool wait_for_refresh, TABLE_LIST *tables);