Check for nonzero logbook files if index is rebuilt. Might help for logbook files hosted on remote file systems.

This commit is contained in:
2015-04-30 13:27:02 +02:00
parent 487fb706be
commit 4af237d43a
+5
View File
@@ -4116,6 +4116,11 @@ int el_build_index(LOGBOOK * lbs, BOOL rebuild)
lbs->el_index[i].offset);
}
if (rebuild && n == 0) {
eprintf("Logbook files seem to have disappeared, aborting program.\n");
assert(rebuild && n > 0);
}
return EL_SUCCESS;
}