tephra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go...@apache.org
Subject incubator-tephra git commit: Use getRegion instead of getRegionInfo for hbase-0.98 compat module
Date Thu, 09 Feb 2017 19:12:27 GMT
Repository: incubator-tephra
Updated Branches:
  refs/heads/master 69a6cc6be -> 13201db73


Use getRegion instead of getRegionInfo for hbase-0.98 compat module

This closes #33 from GitHub.

Signed-off-by: Gokul Gunasekaran <gokul@cask.co>


Project: http://git-wip-us.apache.org/repos/asf/incubator-tephra/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tephra/commit/13201db7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tephra/tree/13201db7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tephra/diff/13201db7

Branch: refs/heads/master
Commit: 13201db734b55e366f17ab573469a186064f3563
Parents: 69a6cc6
Author: Gokul Gunasekaran <gokul@cask.co>
Authored: Thu Feb 9 10:48:07 2017 -0800
Committer: Gokul Gunasekaran <gokul@cask.co>
Committed: Thu Feb 9 11:11:25 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/tephra/hbase/txprune/CompactionState.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/13201db7/tephra-hbase-compat-0.98/src/main/java/org/apache/tephra/hbase/txprune/CompactionState.java
----------------------------------------------------------------------
diff --git a/tephra-hbase-compat-0.98/src/main/java/org/apache/tephra/hbase/txprune/CompactionState.java
b/tephra-hbase-compat-0.98/src/main/java/org/apache/tephra/hbase/txprune/CompactionState.java
index a1d1e35..c1f1825 100644
--- a/tephra-hbase-compat-0.98/src/main/java/org/apache/tephra/hbase/txprune/CompactionState.java
+++ b/tephra-hbase-compat-0.98/src/main/java/org/apache/tephra/hbase/txprune/CompactionState.java
@@ -46,8 +46,8 @@ public class CompactionState {
   private volatile long pruneUpperBound = -1;
 
   public CompactionState(final RegionCoprocessorEnvironment env, final TableName stateTable,
long pruneFlushInterval) {
-    this.regionName = env.getRegionInfo().getRegionName();
-    this.regionNameAsString = env.getRegionInfo().getRegionNameAsString();
+    this.regionName = env.getRegion().getRegionName();
+    this.regionNameAsString = env.getRegion().getRegionNameAsString();
     DataJanitorState dataJanitorState = new DataJanitorState(new DataJanitorState.TableSupplier()
{
       @Override
       public HTableInterface get() throws IOException {


Mime
View raw message