From 3019380bf519ec089f3e041f0c1c2c469d9feb71 Mon Sep 17 00:00:00 2001 From: Lei Ting Date: Tue, 30 Jan 2018 18:56:31 +0800 Subject: [PATCH] fix get_key_from_command for "object" command --- cluster.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster.rb b/cluster.rb index 2f870aa..244ef93 100644 --- a/cluster.rb +++ b/cluster.rb @@ -130,6 +130,8 @@ def get_key_from_command(argv) case argv[0].to_s.downcase when "info","multi","exec","slaveof","config","shutdown" return nil + when "object" + return argv[2] else # Unknown commands, and all the commands having the key # as first argument are handled here: