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, 02 Feb 2017 19:15:43 GMT
Repository: incubator-tephra
Updated Branches:
  refs/heads/master 0016b2034 -> d3c0b6157


Use getRegion instead of getRegionInfo for hbase-0.98 compat module

This closes #30 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/d3c0b615
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tephra/tree/d3c0b615
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tephra/diff/d3c0b615

Branch: refs/heads/master
Commit: d3c0b61574d82ffc29a3cad44e2f7d6fa8871079
Parents: 0016b20
Author: Gokul Gunasekaran <gokul@cask.co>
Authored: Thu Feb 2 10:52:35 2017 -0800
Committer: Gokul Gunasekaran <gokul@cask.co>
Committed: Thu Feb 2 11:15:36 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/d3c0b615/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 a1a59ad..f4f1d43 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
@@ -49,8 +49,8 @@ public class CompactionState {
 
   public CompactionState(final RegionCoprocessorEnvironment env, final TableName stateTable,
long pruneFlushInterval) {
     this.stateTable = stateTable;
-    this.regionName = env.getRegionInfo().getRegionName();
-    this.regionNameAsString = env.getRegionInfo().getRegionNameAsString();
+    this.regionName = env.getRegion().getRegionName();
+    this.regionNameAsString = env.getRegion().getRegionNameAsString();
     this.dataJanitorState = new DataJanitorState(new DataJanitorState.TableSupplier() {
       @Override
       public HTableInterface get() throws IOException {


Mime
View raw message