summaryrefslogtreecommitdiff
path: root/sql/event_db_repository.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-12-02 18:37:10 +0300
committerKonstantin Osipov <kostja@sun.com>2009-12-02 18:37:10 +0300
commitb7e8b0164446432df2673b9bc628ac74c1b30b76 (patch)
treef4b68ed6c093187ea55a474a2a79c95b9765a696 /sql/event_db_repository.cc
parent7585067a47d2c745c6a8ddc2a06fdbbd4611edec (diff)
downloadmariadb-git-b7e8b0164446432df2673b9bc628ac74c1b30b76.tar.gz
Backport of:
---------------------------------------------------------- revno: 2630.4.31 committer: Konstantin Osipov <konstantin@mysql.com> branch nick: mysql-6.0-3726 timestamp: Thu 2008-06-12 06:23:08 +0400 message: Extend the signature of TABLE_LIST::init_one_table() to initialize lengths This is part of WL#3726 post-review fixes.
Diffstat (limited to 'sql/event_db_repository.cc')
-rw-r--r--sql/event_db_repository.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/event_db_repository.cc b/sql/event_db_repository.cc
index b17785a6be7..e9ee54ff8aa 100644
--- a/sql/event_db_repository.cc
+++ b/sql/event_db_repository.cc
@@ -554,7 +554,7 @@ Event_db_repository::open_event_table(THD *thd, enum thr_lock_type lock_type,
TABLE_LIST tables;
DBUG_ENTER("Event_db_repository::open_event_table");
- tables.init_one_table("mysql", "event", "event", lock_type);
+ tables.init_one_table("mysql", 5, "event", 5, "event", lock_type);
alloc_mdl_locks(&tables, thd->mem_root);
if (simple_open_n_lock_tables(thd, &tables))
@@ -1109,7 +1109,7 @@ Event_db_repository::check_system_tables(THD *thd)
/* Check mysql.db */
- tables.init_one_table("mysql", "db", "db", TL_READ);
+ tables.init_one_table("mysql", 5, "db", 2, "db", TL_READ);
alloc_mdl_locks(&tables, thd->mem_root);
if (simple_open_n_lock_tables(thd, &tables))
@@ -1127,7 +1127,7 @@ Event_db_repository::check_system_tables(THD *thd)
close_thread_tables(thd);
}
/* Check mysql.user */
- tables.init_one_table("mysql", "user", "user", TL_READ);
+ tables.init_one_table("mysql", 5, "user", 4, "user", TL_READ);
alloc_mdl_locks(&tables, thd->mem_root);
if (simple_open_n_lock_tables(thd, &tables))
@@ -1148,7 +1148,7 @@ Event_db_repository::check_system_tables(THD *thd)
close_thread_tables(thd);
}
/* Check mysql.event */
- tables.init_one_table("mysql", "event", "event", TL_READ);
+ tables.init_one_table("mysql", 5, "event", 5, "event", TL_READ);
alloc_mdl_locks(&tables, thd->mem_root);
if (simple_open_n_lock_tables(thd, &tables))