[Groonga-commit] droonga/droonga-engine at 28c2946 [master] Support file doesn't exist case

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 24 15:58:15 JST 2014


Kouhei Sutou	2014-06-24 15:58:15 +0900 (Tue, 24 Jun 2014)

  New Revision: 28c2946f2b366cace674c646522fe5c626020e9e
  https://github.com/droonga/droonga-engine/commit/28c2946f2b366cace674c646522fe5c626020e9e

  Message:
    Support file doesn't exist case

  Modified files:
    lib/droonga/file_observer.rb

  Modified: lib/droonga/file_observer.rb (+2 -1)
===================================================================
--- lib/droonga/file_observer.rb    2014-06-24 15:56:11 +0900 (2308038)
+++ lib/droonga/file_observer.rb    2014-06-24 15:58:15 +0900 (8cdc376)
@@ -59,7 +59,8 @@ module Droonga
 
     private
     def updated?
-      @path.exist? and****@path***** > @mtime
+      return false unles****@path*****?
+      @mtime.nil? or****@path***** > @mtime
     end
 
     def log_tag
-------------- next part --------------
HTML����������������������������...
다운로드 



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