HBASE-4913 Addendum: Fix TestShell
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1408902 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5671ab600b
commit
091ee90a7e
|
@ -51,7 +51,7 @@ module Hbase
|
|||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
# Requests a table or region or column family compaction
|
||||
def compact(table_or_region_name, family)
|
||||
def compact(table_or_region_name, family = nil)
|
||||
if family == nil
|
||||
@admin.compact(table_or_region_name)
|
||||
else
|
||||
|
@ -62,7 +62,7 @@ module Hbase
|
|||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
# Requests a table or region or column family major compaction
|
||||
def major_compact(table_or_region_name, family)
|
||||
def major_compact(table_or_region_name, family = nil)
|
||||
if family == nil
|
||||
@admin.majorCompact(table_or_region_name)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue