mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
update Label index when saving Label object if grouping is enabled and used
This commit is contained in:
@@ -28,6 +28,7 @@ module Redistat
|
||||
|
||||
def save
|
||||
@saved = (db.set("#{KEY_LEBELS}#{hash}", @raw) == "OK") if @options[:hashed_label]
|
||||
update_index if groups.size > 1 # TODO: add a label_indexing option
|
||||
self
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user