Navigation Menu

Skip to content

Commit

Permalink
Fix wrong disabled keys detection
Browse files Browse the repository at this point in the history
If grn_index_tables is NULL, it shows disabled keys.
  • Loading branch information
kou committed Sep 26, 2013
1 parent 34f8133 commit 664deda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -4538,7 +4538,7 @@ void ha_mroonga::wrapper_set_keys_in_use()
share->disable_keys = TRUE;
}
} else {
if (grn_index_tables && !grn_index_tables[i]) {
if (!grn_index_tables || !grn_index_tables[i]) {
/* disabled */
table_share->keys_in_use.clear_bit(i);
share->disable_keys = TRUE;
Expand Down

0 comments on commit 664deda

Please sign in to comment.