Skip to content

Commit 31e2ac1

Browse files
committed
Regression fixed in 8f570c to prevent duplicate counts during disk restoration.
See #2667
1 parent b45ab0d commit 31e2ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,7 @@ read_line (GLog *glog, char *line, int *test, uint32_t *cnt, int dry_run) {
19821982
uncount_invalid (glog);
19831983
return NULL;
19841984
}
1985+
glog->read++;
19851986

19861987
return logitem;
19871988
}
@@ -2104,7 +2105,6 @@ read_lines_from_file (FILE *fp, GLog *glog, GJob jobs[2][conf.jobs], int b, char
21042105
while ((*s = fgets (jobs[b][k].lines[jobs[b][k].p], LINE_BUFFER, fp)) != NULL) {
21052106
#endif
21062107
glog->bytes += strlen (jobs[b][k].lines[jobs[b][k].p]);
2107-
glog->read++;
21082108

21092109
if (++(jobs[b][k].p) >= conf.chunk_size)
21102110
break; // goto next chunk

0 commit comments

Comments
 (0)