HBASE-5727 Addendum fixes compilation in AccessController.java

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1311525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-04-10 00:05:27 +00:00
parent 761916cebb
commit 1044d5e353
1 changed files with 3 additions and 3 deletions

View File

@ -191,7 +191,7 @@ public class AccessController extends BaseRegionObserver
String tableName = Bytes.toString(table);
ListMultimap<String,TablePermission> perms = t.getValue();
byte[] serialized = AccessControlLists.writePermissionsAsBytes(perms,
e.getRegion().getConf());
regionEnv.getConfiguration());
this.authManager.getZKPermissionWatcher().writeToZookeeper(tableName,
serialized);
}
@ -223,7 +223,7 @@ public class AccessController extends BaseRegionObserver
AccessControlLists.getTablePermissions(regionEnv.getConfiguration(),
Bytes.toBytes(tableName));
byte[] serialized = AccessControlLists.writePermissionsAsBytes(
perms, e.getRegion().getConf());
perms, regionEnv.getConfiguration());
this.authManager.getZKPermissionWatcher().writeToZookeeper(tableName,
serialized);
} catch (IOException ex) {
@ -654,7 +654,7 @@ public class AccessController extends BaseRegionObserver
try {
this.authManager = TableAuthManager.get(
e.getRegionServerServices().getZooKeeper(),
e.getRegion().getConf());
regionEnv.getConfiguration());
} catch (IOException ioe) {
// pass along as a RuntimeException, so that the coprocessor is unloaded
throw new RuntimeException("Error obtaining TableAuthManager", ioe);