YUKI Hiroshi
null+****@clear*****
Thu Mar 26 20:25:27 JST 2015
YUKI Hiroshi 2015-03-26 20:25:27 +0900 (Thu, 26 Mar 2015) New Revision: 3cbd2ad6f76584ee06b12e1b9e0da7d4d86c5ad4 https://github.com/droonga/droonga-engine/commit/3cbd2ad6f76584ee06b12e1b9e0da7d4d86c5ad4 Message: Instanciate the number of total records to be absorbed before startign of the dump process Modified files: lib/droonga/data_absorber.rb Modified: lib/droonga/data_absorber.rb (+4 -0) =================================================================== --- lib/droonga/data_absorber.rb 2015-03-26 20:14:24 +0900 (71474e4) +++ lib/droonga/data_absorber.rb 2015-03-26 20:25:27 +0900 (def04d0) @@ -66,6 +66,10 @@ module Droonga drndump_command_line = [@drndump] + drndump_options client_command_line = [@client] + client_options(@client) + #XXX We must instanciate the number of total soruce records before absorbing, + # because parallel commands while doing "dump" can be timed out. + required_time_in_seconds + start_time_in_seconds = Time.new.to_i env = {} Open3.pipeline_r([env, *drndump_command_line], -------------- next part -------------- HTML����������������������������...Download