From 91404d9c5dc01790225587393fcd11b442c8a891 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 24 Mar 2011 23:12:55 +0000 Subject: [PATCH] HBASE-3688 Setters of class HTableDescriptor do not work properly git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1085186 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 131151efa09..c60647bd594 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -49,6 +49,7 @@ Release 0.91.0 - Unreleased HBASE-3583 Coprocessors: scannerNext and scannerClose hooks are called when HRegionInterface#get is invoked (Mingjie Lai via Andrew Purtell) + HBASE-3688 Setters of class HTableDescriptor do not work properly IMPROVEMENTS HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack) diff --git a/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java b/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java index 5c8c2ff9086..0641f525af7 100644 --- a/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java +++ b/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java @@ -401,6 +401,7 @@ public class HTableDescriptor implements WritableComparable { */ public void setDeferredLogFlush(final boolean isDeferredLogFlush) { setValue(DEFERRED_LOG_FLUSH_KEY, isDeferredLogFlush? TRUE: FALSE); + this.isDeferredLog = isDeferredLogFlush; } /** @return name of table */ @@ -424,6 +425,8 @@ public class HTableDescriptor implements WritableComparable { /** @param name name of table */ public void setName(byte[] name) { this.name = name; + this.nameAsString = Bytes.toString(this.name); + setMetaFlags(this.name); } /**