From b585855217c77b5a847c5fb811126c1978ce2028 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Tue, 16 Jun 2009 17:10:31 +0000 Subject: [PATCH] fix addContent bug again git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@785302 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/hadoop/hbase/HBaseTestCase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/org/apache/hadoop/hbase/HBaseTestCase.java b/src/test/org/apache/hadoop/hbase/HBaseTestCase.java index 670db6072bb..7bfecb8f56f 100644 --- a/src/test/org/apache/hadoop/hbase/HBaseTestCase.java +++ b/src/test/org/apache/hadoop/hbase/HBaseTestCase.java @@ -309,9 +309,9 @@ public abstract class HBaseTestCase extends TestCase { put.setTimeStamp(ts); } try { - put.add(Bytes.toBytes(columnFamily), - (column == null ? null : Bytes.toBytes(column)), - t); + String col = column != null ? column : columnFamily; + byte[][] split = KeyValue.parseColumn(Bytes.toBytes(col)); + put.add(split[0], split[1], t); updater.put(put); count++; } catch (RuntimeException ex) {