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

This commit is contained in:
tedyu 2017-04-22 15:09:29 -07:00
parent 439711e0a0
commit 5f1691d06e
1 changed files with 2 additions and 2 deletions

View File

@ -800,8 +800,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;