Permalink
Browse files

BUG#21121084 - IB_OPEN_TABLE_BY_ID() GIVES WRONG ARGUMENT FOR

DICT_TABLE_OPEN_ON_ID()

Since we have hold the dict mutex, we should pass TRUE instead of FALSE to
dict_table_open_on_id()

Reviewed-by: Sunny Bains <sunny.bains@oracle.com>
Approved over IM

(cherry picked from commit 270bf0d4d435b9b7aa10d004ceb52c37ad007df8)
  • Loading branch information...
Bin Su
Bin Su committed May 21, 2015
1 parent 298359a commit a2353c5d7ff6430e853de435d007ac64d91fd17d
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/innobase/api/api0api.cc
@@ -245,7 +245,7 @@ ib_open_table_by_id(
dict_mutex_enter_for_mysql();
}
table = dict_table_open_on_id(table_id, FALSE, DICT_TABLE_OP_NORMAL);
table = dict_table_open_on_id(table_id, TRUE, DICT_TABLE_OP_NORMAL);
if (table != NULL && table->ibd_file_missing) {
table = NULL;

0 comments on commit a2353c5

Please sign in to comment.