Browse Source

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
zhangbo 6 năm trước cách đây
mục cha
commit
0b65e3d4cb

+ 1 - 1
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