HBASE-4903 addendum for security build

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1209365 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2011-12-02 05:41:55 +00:00
parent dbb016a527
commit 31468fa7ac
1 changed files with 3 additions and 2 deletions

View File

@ -785,11 +785,12 @@ public class AccessController extends BaseRegionObserver
}
@Override
public void preIncrement(final ObserverContext<RegionCoprocessorEnvironment> c,
final Increment increment, final Result result)
public Result preIncrement(final ObserverContext<RegionCoprocessorEnvironment> c,
final Increment increment)
throws IOException {
requirePermission(TablePermission.Action.WRITE, c.getEnvironment(),
increment.getFamilyMap().keySet());
return null;
}
@Override