Fix broke build; SplitTransaction can be passed null server and services in test context

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1031954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-11-06 04:11:16 +00:00
parent 7975f85146
commit 6fd4989c82
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ class SplitTransaction {
final RegionServerServices services)
throws IOException {
LOG.info("Starting split of region " + this.parent);
if (server.isStopped() || services.isStopping()) {
if ((server != null && server.isStopped()) ||
(services != null && services.isStopping())) {
throw new IOException("Server is stopped or stopping");
}
assert !this.parent.lock.writeLock().isHeldByCurrentThread() : "Unsafe to hold write lock while performing RPCs";