Kouhei Sutou
null+****@clear*****
Mon Oct 30 14:54:56 JST 2017
Kouhei Sutou 2017-10-30 14:54:56 +0900 (Mon, 30 Oct 2017) New Revision: 0cf6e4916133d8228698a70a5376506da6927408 https://github.com/ranguba/groonga-client/commit/0cf6e4916133d8228698a70a5376506da6927408 Message: index-check: ensure removing temporary created index Modified files: lib/groonga/client/command-line/groonga-client-index-check.rb Modified: lib/groonga/client/command-line/groonga-client-index-check.rb (+7 -4) =================================================================== --- lib/groonga/client/command-line/groonga-client-index-check.rb 2017-10-30 14:52:42 +0900 (5ac30ac) +++ lib/groonga/client/command-line/groonga-client-index-check.rb 2017-10-30 14:54:56 +0900 (12c682e) @@ -192,10 +192,13 @@ module Groonga flags, type, source) - tokens = list_tokens(table_name) - broken_index_tokens = verify_tokens(table_name, column_name, - new_column_name, tokens) - column_remove(table_name, new_column_name) + begin + tokens = list_tokens(table_name) + broken_index_tokens = verify_tokens(table_name, column_name, + new_column_name, tokens) + ensure + column_remove(table_name, new_column_name) + end if broken_index_tokens.empty? true else -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171030/f09bb94d/attachment.htm