[Groonga-commit] droonga/droonga-engine at b4503c5 [master] Sort forward buffers by date (their name)

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 28 23:46:27 JST 2015


YUKI Hiroshi	2015-04-28 23:46:27 +0900 (Tue, 28 Apr 2015)

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

  Message:
    Sort forward buffers by date (their name)

  Modified files:
    lib/droonga/forward_buffer.rb

  Modified: lib/droonga/forward_buffer.rb (+3 -1)
===================================================================
--- lib/droonga/forward_buffer.rb    2015-04-28 23:04:36 +0900 (753426d)
+++ lib/droonga/forward_buffer.rb    2015-04-28 23:46:27 +0900 (a083dfd)
@@ -86,7 +86,9 @@ module Droonga
     end
 
     def buffered_messages
-      Pathname.glob("#{@data_directory}/*#{SUFFIX}")
+      Pathname.glob("#{@data_directory}/*#{SUFFIX}").sort_by do |path|
+        path
+      end
     end
 
     def empty?
-------------- next part --------------
HTML����������������������������...
Download 



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