aboutsummaryrefslogtreecommitdiff
path: root/src/binlogsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/binlogsel.c')
-rw-r--r--src/binlogsel.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/binlogsel.c b/src/binlogsel.c
index b3fb75b..9587c2b 100644
--- a/src/binlogsel.c
+++ b/src/binlogsel.c
@@ -340,11 +340,15 @@ selmem(const char *name, void *base)
}
break;
case 1:
- for (; start + 1 >= 0; start--) {
- if (start_time < getrec(base, hdr->recsize, start)->ts)
+ for (; start >= 0; start--) {
+ if (start_time <
+ getrec(base, hdr->recsize, start)->ts) {
+ ++start;
break;
+ }
}
- ++start;
+ if (start == 0)
+ return;
}
} else
start = 0;
@@ -917,8 +921,9 @@ read_status_fp(FILE *fp)
return 1;
timemask |= START_TIME;
- start_time = ts;
-
+ start_time = ts + 1;
+ last_ts = start_time;
+
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.