HBASE-2120 [stargate] Unable to delete column families

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@899022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2010-01-14 01:39:27 +00:00
parent cb441c4528
commit 437d137414
2 changed files with 4 additions and 2 deletions

View File

@ -156,6 +156,8 @@ Release 0.21.0 - Unreleased
(Kay Kay via JD)
HBASE-2101 KeyValueSortReducer collapses all values to last passed
HBASE-2119 Fix top-level NOTICES.txt file. Its stale.
HBASE-2120 [stargate] Unable to delete column families (Greg Lu via Andrew
Purtell)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -281,13 +281,13 @@ public class RowResource implements Constants {
for (byte[] column: rowspec.getColumns()) {
byte[][] split = KeyValue.parseColumn(column);
if (rowspec.hasTimestamp()) {
if (split.length == 2) {
if (split.length == 2 && split[1].length != 0) {
delete.deleteColumns(split[0], split[1], rowspec.getTimestamp());
} else {
delete.deleteFamily(split[0], rowspec.getTimestamp());
}
} else {
if (split.length == 2) {
if (split.length == 2 && split[1].length != 0) {
delete.deleteColumns(split[0], split[1]);
} else {
delete.deleteFamily(split[0]);