HBASE-717 alter table broke with new shell returns InvalidColumnNameException

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@673000 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-07-01 05:13:45 +00:00
parent 3d579b7beb
commit 070112eef2
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ Hbase Change Log
BUG FIXES
HBASE-718 hbase shell help info
HBASE-717 alter table broke with new shell returns InvalidColumnNameException
Release 0.1.3 - 07/25/2008

View File

@ -44,7 +44,7 @@ class ModifyColumn extends ColumnOperation {
protected void postProcessMeta(MetaRegion m, HRegionInterface server)
throws IOException {
for (HRegionInfo i: unservedRegions) {
if (!i.getTableDesc().hasFamily(columnName)) {
if (i.getTableDesc().hasFamily(columnName)) {
i.getTableDesc().addFamily(descriptor);
updateRegionInfo(server, m.getRegionName(), i);
} else { // otherwise, we have an error.
@ -54,4 +54,4 @@ class ModifyColumn extends ColumnOperation {
}
}
}
}
}