HBASE-1670 transactions / indexing fixes: trx deletes not handeled, index scan can't specify stopRow; forgot to add a file

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@797322 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-07-24 04:45:54 +00:00
parent c01aadc32c
commit 926a17e351
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package org.apache.hadoop.hbase.client.transactional;
import org.apache.hadoop.hbase.ipc.HBaseRPC;
import org.apache.hadoop.hbase.ipc.TransactionalRegionInterface;
/** Simple class for registering the transactional RPC codes.
*
*/
public final class TransactionalRPC {
private static final byte RPC_CODE = 100;
private static boolean initialized = false;
public synchronized static void initialize() {
if (initialized) {
return;
}
HBaseRPC.addToMap(TransactionalRegionInterface.class, RPC_CODE);
initialized = true;
}
private TransactionalRPC() {
// Static helper class;
}
}