mirror of
https://github.com/simon987/sist2.git
synced 2025-12-12 15:08:53 +00:00
Disallow incremental scan when version does not match (#33)
This commit is contained in:
@@ -57,7 +57,7 @@ index_descriptor_t read_index_descriptor(char *path) {
|
||||
int fd = open(path, O_RDONLY);
|
||||
|
||||
if (fd == -1) {
|
||||
LOG_FATAL("serialize.c", "Invalid/corrupt index (Could not find descriptor)\n")
|
||||
LOG_FATALF("serialize.c", "Invalid/corrupt index (Could not find descriptor): %s: %s\n", path ,strerror(errno))
|
||||
}
|
||||
|
||||
char *buf = malloc(info.st_size + 1);
|
||||
|
||||
Reference in New Issue
Block a user