[Groonga-commit] droonga/droonga-engine at 464ab72 [master] Shorten serf tag name.

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 12:16:13 JST 2015


YUKI Hiroshi	2015-04-21 12:16:13 +0900 (Tue, 21 Apr 2015)

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

  Message:
    Shorten serf tag name.
    
    Because there is limitation about maximum size of serf tags.
    We should keep tags short as possible.

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+4 -4)
===================================================================
--- lib/droonga/serf.rb    2015-04-21 12:15:43 +0900 (1b35c08)
+++ lib/droonga/serf.rb    2015-04-21 12:16:13 +0900 (650b138)
@@ -204,20 +204,20 @@ module Droonga
     end
 
     def last_processed_message_timestamp
-      get_tag("last-processed-message-timestamp")
+      get_tag("last-timestamp")
     end
 
     def last_processed_message_timestamp=(timestamp)
-      set_tag("last-processed-message-timestamp", timestamp.to_s)
+      set_tag("last-timestamp", timestamp.to_s)
       # after that you must run update_cluster_state to update the cluster information cache
     end
 
     def accept_messages_newer_than_timestamp
-      get_tag("accept-messages-newer-than")
+      get_tag("accept-newer-than")
     end
 
     def accept_messages_newer_than(timestamp)
-      set_tag("accept-messages-newer-than", timestamp.to_s)
+      set_tag("accept-newer-than", timestamp.to_s)
       # after that you must run update_cluster_state to update the cluster information cache
     end
 
-------------- next part --------------
HTML����������������������������...
下载 



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