Yoji Shidara
null+****@clear*****
Tue Nov 5 15:00:34 JST 2013
Yoji Shidara 2013-11-05 15:00:34 +0900 (Tue, 05 Nov 2013) New Revision: ba9acca25d488114b5eb39de93a0bf8e963c0d99 https://github.com/droonga/fluent-plugin-droonga/commit/ba9acca25d488114b5eb39de93a0bf8e963c0d99 Message: Create schema for watch if not exist Modified files: lib/droonga/plugin/handler_watch.rb Modified: lib/droonga/plugin/handler_watch.rb (+7 -0) =================================================================== --- lib/droonga/plugin/handler_watch.rb 2013-11-05 15:00:19 +0900 (1d442cf) +++ lib/droonga/plugin/handler_watch.rb 2013-11-05 15:00:34 +0900 (663edf4) @@ -17,6 +17,7 @@ require "droonga/watcher" require "droonga/sweeper" +require "droonga/watch_schema" require "droonga/handler" module Droonga @@ -25,6 +26,7 @@ module Droonga def initialize(*args) super + ensure_schema_created @watcher = Watcher.new(@context) @sweeper = Sweeper.new(@context) end @@ -76,5 +78,10 @@ module Droonga query = condition && condition.to_json [subscriber, condition, query, route] end + + def ensure_schema_created + schema = WatchSchema.new(@context) + schema.ensure_created + end end end -------------- next part -------------- HTML����������������������������...Download