Navigation Menu

Skip to content

Commit

Permalink
Wait until the exported last message timestamp is completely exported…
Browse files Browse the repository at this point in the history
… to node's tag
  • Loading branch information
piroor committed Apr 28, 2015
1 parent 0ee14ce commit 61959ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/droonga/serf.rb
Expand Up @@ -202,6 +202,9 @@ def last_message_timestamp
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

Expand Down

0 comments on commit 61959ac

Please sign in to comment.