Check for nonzero logbook files if index is rebuilt. Might help for logbook files hosted on remote file systems.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user