From 182ddeac26c7033e6de2c1c61adbd6627e1bea85 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Sun, 29 May 2011 17:06:32 +0000 Subject: [PATCH] HBASE-3921 Allow adding arbitrary blobs to Put; fix accidental commit from wrong working file git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1128906 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/hadoop/hbase/client/Put.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/hadoop/hbase/client/Put.java b/src/main/java/org/apache/hadoop/hbase/client/Put.java index aab7e850f91..5cf04d85c7b 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/Put.java +++ b/src/main/java/org/apache/hadoop/hbase/client/Put.java @@ -529,9 +529,9 @@ public class Put implements HeapSize, Writable, Row, Comparable { } if (attributes != null) { heapsize += ClassSize.align(this.attributes.size() * ClassSize.MAP_ENTRY); - for(Map.Entry> entry : this.familyMap.entrySet()) { - heapsize += ClassSize.align(ClassSize.STRING + entry.getKey().length); - heapsize += ClassSize.align(ClassSize.ARRAY + entry.getValue().size()); + for(Map.Entry entry : this.attributes.entrySet()) { + heapsize += ClassSize.align(ClassSize.STRING + entry.getKey().length()); + heapsize += ClassSize.align(ClassSize.ARRAY + entry.getValue().length); } } return ClassSize.align((int)heapsize);