applying HBASE-11374 fix

@mustpax @neilfulwiler @dogaan 
It irks me a little that other variables that interact with this variable are all `long`s. May not be a big deal though.