Browse Source

ckdb - dont abort when reload completes

master
kanoi 10 years ago
parent
commit
1df419158f
  1. 6
      src/ckdb.c

6
src/ckdb.c

@ -7370,7 +7370,7 @@ static bool reload_from(tv_t *start)
char *missing, *missing2; char *missing, *missing2;
int missing_count; int missing_count;
int processing; int processing;
bool ok = true; bool ok = true, finished = false;
char *filename; char *filename;
char data[MAX_READ]; char data[MAX_READ];
uint64_t count, total; uint64_t count, total;
@ -7394,7 +7394,7 @@ static bool reload_from(tv_t *start)
total = 0; total = 0;
processing = 0; processing = 0;
while (ok) { while (ok && !finished) {
LOGWARNING("%s(): processing %s", __func__, filename); LOGWARNING("%s(): processing %s", __func__, filename);
processing++; processing++;
count = 0; count = 0;
@ -7431,7 +7431,7 @@ static bool reload_from(tv_t *start)
while (42) { while (42) {
start->tv_sec += ROLL_S; start->tv_sec += ROLL_S;
if (!tv_newer(start, &now)) { if (!tv_newer(start, &now)) {
ok = false; finished = true;
break; break;
} }
filename = rotating_filename(restorefrom, start->tv_sec); filename = rotating_filename(restorefrom, start->tv_sec);

Loading…
Cancel
Save