Browse Source

ckdb - abort if any compressed files return no data - also true if the decompress command doesn't exist

master
kanoi 10 years ago
parent
commit
1fca8b8188
  1. 9
      src/ckdb.c
  2. 2
      src/ckdb.h

9
src/ckdb.c

@ -2771,9 +2771,14 @@ static bool reload_from(tv_t *start)
count, count == 1 ? "" : "s", count, count == 1 ? "" : "s",
filename); filename);
total += count; total += count;
if (apipe) if (apipe) {
pclose(fp); pclose(fp);
else if (count == 0) {
quithere(1, "ABORTING - No data returned from "
"compressed file \"%s\"",
filename);
}
} else
fclose(fp); fclose(fp);
free(filename); free(filename);
if (everyone_die || matched) if (everyone_die || matched)

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "0.9.6" #define DB_VERSION "0.9.6"
#define CKDB_VERSION DB_VERSION"-0.730" #define CKDB_VERSION DB_VERSION"-0.731"
#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__

Loading…
Cancel
Save