|
|
@ -47,7 +47,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#define DB_VLOCK "1" |
|
|
|
#define DB_VLOCK "1" |
|
|
|
#define DB_VERSION "0.8" |
|
|
|
#define DB_VERSION "0.8" |
|
|
|
#define CKDB_VERSION DB_VERSION"-0.230" |
|
|
|
#define CKDB_VERSION DB_VERSION"-0.231" |
|
|
|
|
|
|
|
|
|
|
|
#define WHERE_FFL " - from %s %s() line %d" |
|
|
|
#define WHERE_FFL " - from %s %s() line %d" |
|
|
|
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ |
|
|
|
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ |
|
|
@ -10841,7 +10841,7 @@ static bool reload_from(tv_t *start) |
|
|
|
processing++; |
|
|
|
processing++; |
|
|
|
count = 0; |
|
|
|
count = 0; |
|
|
|
|
|
|
|
|
|
|
|
while (!matched && fgets_unlocked(reload_buf, MAX_READ, fp)) |
|
|
|
while (!everyone_die && !matched && fgets_unlocked(reload_buf, MAX_READ, fp)) |
|
|
|
matched = reload_line(conn, filename, ++count, reload_buf); |
|
|
|
matched = reload_line(conn, filename, ++count, reload_buf); |
|
|
|
|
|
|
|
|
|
|
|
if (ferror(fp)) { |
|
|
|
if (ferror(fp)) { |
|
|
@ -10850,14 +10850,15 @@ static bool reload_from(tv_t *start) |
|
|
|
filename, err, strerror(err)); |
|
|
|
filename, err, strerror(err)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
LOGWARNING("%s(): read %"PRIu64" line%s from %s", |
|
|
|
LOGWARNING("%s(): %sread %"PRIu64" line%s from %s", |
|
|
|
__func__, |
|
|
|
__func__, |
|
|
|
|
|
|
|
everyone_die ? "Shutdown, aborting - " : "", |
|
|
|
count, count == 1 ? "" : "s", |
|
|
|
count, count == 1 ? "" : "s", |
|
|
|
filename); |
|
|
|
filename); |
|
|
|
total += count; |
|
|
|
total += count; |
|
|
|
fclose(fp); |
|
|
|
fclose(fp); |
|
|
|
free(filename); |
|
|
|
free(filename); |
|
|
|
if (matched) |
|
|
|
if (everyone_die || matched) |
|
|
|
break; |
|
|
|
break; |
|
|
|
reload_timestamp.tv_sec += ROLL_S; |
|
|
|
reload_timestamp.tv_sec += ROLL_S; |
|
|
|
if (confirm_sharesummary && tv_newer(&confirm_finish, &reload_timestamp)) { |
|
|
|
if (confirm_sharesummary && tv_newer(&confirm_finish, &reload_timestamp)) { |
|
|
|