Yoji Shidara
null+****@clear*****
Thu Nov 7 11:32:45 JST 2013
Yoji Shidara 2013-11-07 11:32:45 +0900 (Thu, 07 Nov 2013) New Revision: 5b42863e5610924cec375896dae041db8860acea https://github.com/droonga/fluent-plugin-droonga/commit/5b42863e5610924cec375896dae041db8860acea Message: Skip table creation if exists Modified files: lib/droonga/watch_schema.rb Modified: lib/droonga/watch_schema.rb (+4 -0) =================================================================== --- lib/droonga/watch_schema.rb 2013-11-07 11:14:24 +0900 (74ca029) +++ lib/droonga/watch_schema.rb 2013-11-07 11:32:45 +0900 (4d50805) @@ -24,6 +24,10 @@ module Droonga end def ensure_created + if @context["Keyword"] + $log.trace "[#{Process.pid}] Watch tables exists. Skipping creation" + return + end $log.trace "[#{Process.pid}] Creating Watch tables" ensure_tables $log.trace "[#{Process.pid}] Created Watch tables" -------------- next part -------------- HTML����������������������������... Download