[Groonga-commit] droonga/droonga-engine at 1e0f904 [master] Ignore missing buffer file

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 22 21:36:09 JST 2015


YUKI Hiroshi	2015-04-22 21:36:09 +0900 (Wed, 22 Apr 2015)

  New Revision: 1e0f90481aea24bda91c64a80a528357ea10b792
  https://github.com/droonga/droonga-engine/commit/1e0f90481aea24bda91c64a80a528357ea10b792

  Message:
    Ignore missing buffer file

  Modified files:
    lib/droonga/forward_buffer.rb

  Modified: lib/droonga/forward_buffer.rb (+7 -0)
===================================================================
--- lib/droonga/forward_buffer.rb    2015-04-22 21:25:37 +0900 (8c12184)
+++ lib/droonga/forward_buffer.rb    2015-04-22 21:36:09 +0900 (84da921)
@@ -98,6 +98,13 @@ module Droonga
     private
     def forward(buffered_message_path)
       logger.trace("forward: start (#{buffered_message_path})")
+
+      unless buffered_message_path.exist?
+        logger.warn("forward: no buffer file (maybe sent by other process)",
+                    :path => buffered_message_path)
+        return false
+      end
+
       file_contents = buffered_message_path.read
       @unpacker.feed(file_contents)
       buffered_message =****@unpac*****
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index