zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject zookeeper git commit: ZOOKEEPER-3090: continue can be replaced with break
Date Wed, 05 Sep 2018 23:11:11 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/master e501d9cc6 -> 0b65e3d4c


ZOOKEEPER-3090: continue can be replaced with break

change continue  to break

Author: zhangbo <zhangbo01@dafy.com>

Reviewers: hanm, nkalmar, maoling

Closes #573 from a470577391/master


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/0b65e3d4
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/0b65e3d4
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/0b65e3d4

Branch: refs/heads/master
Commit: 0b65e3d4cbb7647ea692bfea59c02e5b24bf821c
Parents: e501d9c
Author: zhangbo <zhangbo01@dafy.com>
Authored: Wed Sep 5 16:11:01 2018 -0700
Committer: Michael Han <hanm@apache.org>
Committed: Wed Sep 5 16:11:01 2018 -0700

----------------------------------------------------------------------
 .../main/org/apache/zookeeper/server/persistence/FileTxnLog.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/0b65e3d4/src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java
----------------------------------------------------------------------
diff --git a/src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java b/src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java
index 4f0ef2a..84b29c3 100644
--- a/src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java
+++ b/src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java
@@ -257,7 +257,7 @@ public class FileTxnLog implements TxnLog {
         for (File f : files) {
             long fzxid = Util.getZxidFromName(f.getName(), LOG_FILE_PREFIX);
             if (fzxid > snapshotZxid) {
-                continue;
+                break;
             }
             // the files
             // are sorted with zxid's


Mime
View raw message