[Groonga-commit] droonga/droonga-engine at 61959ac [master] Wait until the exported last message timestamp is completely exported to node's tag

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 28 17:23:00 JST 2015


YUKI Hiroshi	2015-04-28 17:23:00 +0900 (Tue, 28 Apr 2015)

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

  Message:
    Wait until the exported last message timestamp is completely exported to node's tag

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+3 -0)
===================================================================
--- lib/droonga/serf.rb    2015-04-28 16:59:31 +0900 (644893a)
+++ lib/droonga/serf.rb    2015-04-28 17:23:00 +0900 (84b5088)
@@ -202,6 +202,9 @@ module Droonga
     def latest_last_message_timestamp
       send_query("export_last_message_timestamp",
                  "node" => @name.to_s)
+      # Wait until the query is completely processed by the node
+      # and and the timestamp is correctly exported to its tag.
+      sleep(10)
       last_message_timestamp
     end
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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