Skip to content

Commit

Permalink
process COMBINATION storage accidental fetch duplicate entry
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghao committed Jul 17, 2019
1 parent 3777757 commit 0206281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.menina</groupId>
<artifactId>raft</artifactId>
<version>1.2.6</version>
<version>1.2.7</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public List<RaftProto.Entry> entries(long begin, long end) {
readLock.lock();
try {
long lowWatermark = buffer.lowWatermark();
long highWatermark = Math.min(buffer.highWatermark(), end);
long highWatermark = Math.min(buffer.highWatermark(), end - 1);
if (begin >= lowWatermark) {
return buffer.entries(begin, highWatermark);
} else if (begin < lowWatermark && end >= lowWatermark) {
Expand Down

0 comments on commit 0206281

Please sign in to comment.