HBASE-10564 HRegionServer.nextLong should be removed since it's not used anywhere, or should be used somewhere it meant to
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1569467 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8c24e585e1
commit
4b7c58487e
|
@ -2791,22 +2791,6 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
|
|||
return scannerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a random positive long number
|
||||
*
|
||||
* @return a random positive long number
|
||||
*/
|
||||
protected long nextLong() {
|
||||
long n = rand.nextLong();
|
||||
if (n == 0) {
|
||||
return nextLong();
|
||||
}
|
||||
if (n < 0) {
|
||||
n = -n;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
// Start Client methods
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue