HBASE-17302 The region flush request disappeared from flushQueue - addendum (Guangxu Cheng)

This commit is contained in:
tedyu 2017-04-23 07:37:34 -07:00
parent 9053ec6fe6
commit 435104af70
1 changed files with 2 additions and 2 deletions

View File

@ -816,8 +816,8 @@ class MemStoreFlusher implements FlushRequester {
return false;
}
FlushRegionEntry other = (FlushRegionEntry) obj;
if (!this.region.getRegionInfo().getRegionNameAsString().equals(
other.region.getRegionInfo().getRegionNameAsString())) {
if (!Bytes.equals(this.region.getRegionInfo().getRegionName(),
other.region.getRegionInfo().getRegionName())) {
return false;
}
return compareTo(other) == 0;