Kouhei Sutou
null+****@clear*****
Mon Jul 21 20:29:41 JST 2014
Kouhei Sutou 2014-07-21 20:29:41 +0900 (Mon, 21 Jul 2014) New Revision: 8ed7211bd59048981fed4fff7657b53a3f73a110 https://github.com/droonga/droonga-engine/commit/8ed7211bd59048981fed4fff7657b53a3f73a110 Message: forwarder: remove garbage on resume Modified files: lib/droonga/forwarder.rb Modified: lib/droonga/forwarder.rb (+4 -1) =================================================================== --- lib/droonga/forwarder.rb 2014-07-21 20:27:36 +0900 (1c99628) +++ lib/droonga/forwarder.rb 2014-07-21 20:29:41 +0900 (1450fd2) @@ -57,7 +57,10 @@ module Droonga return unless Path.buffer.exist? Pathname.glob("#{Path.buffer}/*") do |path| next unless path.directory? - next if Pathname.glob("#{path.to_s}/*").empty? + if Pathname.glob("#{path.to_s}/*").empty? + FileUtils.rm_rf(path.to_s) + next + end destination = path.basename.to_s sender = @senders[destination] -------------- next part -------------- HTML����������������������������...Download