From 5d3c18164109c1993ada60bfcd5737708bc39af0 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 9 Mar 2011 11:57:18 +0000 Subject: [PATCH] update Label index when saving Label object if grouping is enabled and used --- lib/redistat/label.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/redistat/label.rb b/lib/redistat/label.rb index e39c21a..748e85d 100644 --- a/lib/redistat/label.rb +++ b/lib/redistat/label.rb @@ -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