Skip to content

Commit

Permalink
add buffer.setStep(leafAlloc.getStep()) in updateSegmentFromDb
Browse files Browse the repository at this point in the history
  • Loading branch information
thelight1 committed Oct 8, 2019
1 parent 44791d1 commit 26e3965
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public void updateSegmentFromDb(String key, Segment segment) {
} else if (buffer.getUpdateTimestamp() == 0) {
leafAlloc = dao.updateMaxIdAndGetLeafAlloc(key);
buffer.setUpdateTimestamp(System.currentTimeMillis());
buffer.setStep(leafAlloc.getStep());
buffer.setMinStep(leafAlloc.getStep());//leafAlloc中的step为DB中的step
} else {
long duration = System.currentTimeMillis() - buffer.getUpdateTimestamp();
Expand Down

0 comments on commit 26e3965

Please sign in to comment.