Kouhei Sutou
null+****@clear*****
Tue Dec 30 13:41:05 JST 2014
Kouhei Sutou 2014-12-30 13:41:05 +0900 (Tue, 30 Dec 2014) New Revision: 7597bb62b84ce4633d1af3d272fd02a73d04614a https://github.com/mroonga/mroonga/commit/7597bb62b84ce4633d1af3d272fd02a73d04614a Message: storage: fix a bug that referenced table is removed on error If index creation is failed and `FULLTEXT INDEX (...) COMMENT 'table "terms"'` is specified, `terms` table is removed on error. Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+2 -1) =================================================================== --- ha_mroonga.cpp 2014-12-29 21:08:54 +0900 (4c3250e) +++ ha_mroonga.cpp 2014-12-30 13:41:05 +0900 (c36e449) @@ -3624,7 +3624,8 @@ int ha_mroonga::storage_create_indexes(TABLE *table, const char *grn_table_name, } if (error) { while (true) { - if (index_tables[i]) { + if (index_tables[i] && + !(tmp_share->index_table && tmp_share->index_table[i])) { grn_obj_remove(ctx, index_tables[i]); } if (!i) -------------- next part -------------- HTML����������������������������...다운로드