Kouhei Sutou
null+****@clear*****
Tue Aug 30 18:14:57 JST 2016
Kouhei Sutou 2016-08-30 18:14:57 +0900 (Tue, 30 Aug 2016) New Revision: de990fd4a7f37460e98b1acb83269a7454cc4b1f https://github.com/groonga/groonga/commit/de990fd4a7f37460e98b1acb83269a7454cc4b1f Message: logical_table_remove: simplify Modified files: plugins/sharding/logical_table_remove.rb Modified: plugins/sharding/logical_table_remove.rb (+6 -2) =================================================================== --- plugins/sharding/logical_table_remove.rb 2016-08-30 18:14:41 +0900 (d9c7639) +++ plugins/sharding/logical_table_remove.rb 2016-08-30 18:14:57 +0900 (c3880c8) @@ -168,7 +168,13 @@ module Groonga database.each_raw do |id, cursor| next if id == table_id + object = context[id] + if object.nil? + context.clear_error + next + end + case object when Table if object.domain_id == table_id @@ -190,8 +196,6 @@ module Groonga remove_column_force(object) end end - when nil - context.clear_error end end -------------- next part -------------- HTML����������������������������...Download