Skip to content

Commit

Permalink
fixed #6 打印刷盘进度时,会导致Slave创建错误的文件,修复
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagewang committed May 19, 2013
1 parent a445e65 commit 5aabcf3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public boolean load() {
* 刷盘进度落后了多少
*/
public long howMuchFallBehind() {
if (this.mapedFiles.isEmpty())
return 0;

long committed = this.committedWhere;
if (committed != 0) {
MapedFile mapedFile = this.getLastMapedFile();
Expand Down

0 comments on commit 5aabcf3

Please sign in to comment.