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:
Michael Stack 2013-01-17 05:39:22 +00:00
parent 029fb95739
commit 28b79e1214
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public class ReplicationSourceManager {
} }
synchronized (this.hlogsById) { synchronized (this.hlogsById) {
SortedSet<String> hlogs = this.hlogsById.get(id); SortedSet<String> hlogs = this.hlogsById.get(id);
if (!queueRecovered && hlogs.first() != key) { if (!queueRecovered && !hlogs.first().equals(key)) {
SortedSet<String> hlogSet = hlogs.headSet(key); SortedSet<String> hlogSet = hlogs.headSet(key);
for (String hlog : hlogSet) { for (String hlog : hlogSet) {
this.zkHelper.removeLogFromList(hlog, id); this.zkHelper.removeLogFromList(hlog, id);