aboutsummaryrefslogtreecommitdiff
path: root/src/binlogsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/binlogsel.c')
-rw-r--r--src/binlogsel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/binlogsel.c b/src/binlogsel.c
index 80f5b83..fad0881 100644
--- a/src/binlogsel.c
+++ b/src/binlogsel.c
@@ -92,14 +92,18 @@ interval_add(const char *name, int tmask, time_t start, time_t end)
interval_tail = p;
if (tmask & START_TIME) {
- if (!(timemask & START_TIME) || start_time > start)
+ if (!(timemask & START_TIME) || start_time > start) {
start_time = start;
+ timemask |= START_TIME;
+ }
} else
timemask |= CLEAR_START_TIME;
if (tmask & STOP_TIME) {
- if (!(timemask & STOP_TIME) || to_time < end)
+ if (!(timemask & STOP_TIME) || to_time < end) {
to_time = end;
+ timemask |= STOP_TIME;
+ }
} else
timemask |= CLEAR_STOP_TIME;
}

Return to:

Send suggestions and report system problems to the System administrator.