From 8cdba28df588d2dfa9a43947b6aea837ea36701b Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 3 Mar 2010 00:01:25 +0000 Subject: [PATCH] HBASE-2244 META gets inconsistent in a number of crash scenarios git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@918277 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/regionserver/HRegion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/core/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java index 0d7030024b4..c9c38c11b38 100644 --- a/core/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java +++ b/core/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java @@ -661,10 +661,10 @@ public class HRegion implements HConstants, HeapSize { // , Writable{ // Create a region instance and then move the splits into place under // regionA and regionB. HRegion regionA = - HRegion.newHRegion(basedir, log, fs, conf, regionAInfo, null); + new HRegion(basedir, log, fs, conf, regionAInfo, null); moveInitialFilesIntoPlace(this.fs, dirA, regionA.getRegionDir()); HRegion regionB = - HRegion.newHRegion(basedir, log, fs, conf, regionBInfo, null); + new HRegion(basedir, log, fs, conf, regionBInfo, null); moveInitialFilesIntoPlace(this.fs, dirB, regionB.getRegionDir()); HRegion regions[] = new HRegion [] {regionA, regionB};