Navigation Menu

Skip to content

Commit

Permalink
Shorten serf tag name.
Browse files Browse the repository at this point in the history
Because there is limitation about maximum size of serf tags.
We should keep tags short as possible.
  • Loading branch information
piroor committed Apr 21, 2015
1 parent b394a2c commit 464ab72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/droonga/serf.rb
Expand Up @@ -204,20 +204,20 @@ def role=(new_role)
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

Expand Down

0 comments on commit 464ab72

Please sign in to comment.