Navigation Menu

Skip to content

Commit

Permalink
index-check: ensure removing temporary created index
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 30, 2017
1 parent 681d691 commit 0cf6e49
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/groonga/client/command-line/groonga-client-index-check.rb
Expand Up @@ -192,10 +192,13 @@ def check_content(index_column)
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
Expand Down

0 comments on commit 0cf6e49

Please sign in to comment.