From 8df0e84cf786be99a37ed460374d90bd7cb0dd8b Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 18 Nov 2011 18:45:51 +0000 Subject: [PATCH] HBASE-4819 TestShell broke in trunk; typo git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1203788 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/ruby/hbase/admin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ruby/hbase/admin.rb b/src/main/ruby/hbase/admin.rb index 02f01e20b2a..873fe35ba68 100644 --- a/src/main/ruby/hbase/admin.rb +++ b/src/main/ruby/hbase/admin.rb @@ -199,7 +199,7 @@ module Hbase splits[idx] = split.to_java_bytes idx = idx + 1 end - elsif arg.kind_of?(Hash) and (arg.has_key?(NUMREGIONS) or arg.has_key?(SLITALGO)) + elsif arg.kind_of?(Hash) and (arg.has_key?(NUMREGIONS) or arg.has_key?(SPLITALGO)) raise(ArgumentError, "Number of regions must be specified") unless arg.has_key?(NUMREGIONS) raise(ArgumentError, "Split algorithm must be specified") unless arg.has_key?(SPLITALGO) raise(ArgumentError, "Number of regions must be geter than 1") unless arg[NUMREGIONS] > 1