HBASE-7595 Fix one findbug warning in ReplicationSourceManager
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1434561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
029fb95739
commit
28b79e1214
|
@ -157,7 +157,7 @@ public class ReplicationSourceManager {
|
|||
}
|
||||
synchronized (this.hlogsById) {
|
||||
SortedSet<String> hlogs = this.hlogsById.get(id);
|
||||
if (!queueRecovered && hlogs.first() != key) {
|
||||
if (!queueRecovered && !hlogs.first().equals(key)) {
|
||||
SortedSet<String> hlogSet = hlogs.headSet(key);
|
||||
for (String hlog : hlogSet) {
|
||||
this.zkHelper.removeLogFromList(hlog, id);
|
||||
|
|
Loading…
Reference in New Issue