Skip to content

Commit

Permalink
Merge "make sure to close redis connection for varz" into services-r10
Browse files Browse the repository at this point in the history
  • Loading branch information
figo authored and Gerrit Code Review committed Mar 29, 2012
2 parents a2a39b2 + 49ecfe7 commit 099b168
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/lib/redis_service/redis_node.rb
Expand Up @@ -453,6 +453,7 @@ def gen_credentials(instance)
end

def get_status(instance)
redis = nil
Timeout::timeout(@redis_timeout) do
redis = Redis.new({:port => instance.port, :password => instance.password})
redis.echo("")
Expand Down

0 comments on commit 099b168

Please sign in to comment.