HBASE-4819 TestShell broke in trunk; typo

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1203788 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-11-18 18:45:51 +00:00
parent e0e0d94f97
commit 8df0e84cf7
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ module Hbase
splits[idx] = split.to_java_bytes splits[idx] = split.to_java_bytes
idx = idx + 1 idx = idx + 1
end 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, "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, "Split algorithm must be specified") unless arg.has_key?(SPLITALGO)
raise(ArgumentError, "Number of regions must be geter than 1") unless arg[NUMREGIONS] > 1 raise(ArgumentError, "Number of regions must be geter than 1") unless arg[NUMREGIONS] > 1