Kouhei Sutou
null+****@clear*****
Sun Dec 24 02:10:24 JST 2017
Kouhei Sutou 2017-12-24 02:10:24 +0900 (Sun, 24 Dec 2017) New Revision: fdde1d55932a923649df61f7858f5a044b8541ec https://github.com/mroonga/mroonga/commit/fdde1d55932a923649df61f7858f5a044b8541ec Message: Fix inverted condition Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+4 -4) =================================================================== --- ha_mroonga.cpp 2017-12-24 01:42:55 +0900 (c6a2e90b) +++ ha_mroonga.cpp 2017-12-24 02:10:24 +0900 (7baa0a3b) @@ -3770,7 +3770,7 @@ bool ha_mroonga::storage_create_foreign_key(TABLE *table, field_name->str)); DBUG_PRINT("info", ("mroonga: field->field_name=" FIELD_NAME_FORMAT, FIELD_NAME_FORMAT_VALUE(field))); - if (FIELD_NAME_EQUAL_STRING(field, field_name)) { + if (!FIELD_NAME_EQUAL_STRING(field, field_name)) { continue; } Foreign_key *fk = (Foreign_key *) key; @@ -3890,7 +3890,7 @@ bool ha_mroonga::storage_create_foreign_key(TABLE *table, DBUG_RETURN(false); } Field *ref_field = &ref_key_info->key_part->field[0]; - if (FIELD_NAME_EQUAL_STRING(ref_field, ref_field_name)) { + if (!FIELD_NAME_EQUAL_STRING(ref_field, ref_field_name)) { mrn_open_mutex_lock(table->s); mrn_free_tmp_table_share(tmp_ref_table_share); mrn_open_mutex_unlock(table->s); @@ -15053,7 +15053,7 @@ bool ha_mroonga::wrapper_inplace_alter_table( if (!(key->flags & HA_FULLTEXT || mrn_is_geo_key(key))) { continue; } - while (KEY_NAME_EQUAL_KEY(key, &(key_info[j]))) { + while (!KEY_NAME_EQUAL_KEY(key, &(key_info[j]))) { ++j; } DBUG_PRINT("info", ("mroonga: key_name=" KEY_NAME_FORMAT, @@ -15349,7 +15349,7 @@ bool ha_mroonga::storage_inplace_alter_table_drop_index( n_keys = ha_alter_info->index_drop_count; for (i = 0; i < n_keys; ++i) { KEY *key = ha_alter_info->index_drop_buffer[i]; - while (KEY_NAME_EQUAL_KEY(key, &(key_info[j]))) { + while (!KEY_NAME_EQUAL_KEY(key, &(key_info[j]))) { ++j; } int error = drop_index(share, j); -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20171224/1384578b/attachment-0001.htm