mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Check for nonzero logbook files if index is rebuilt. Might help for logbook files hosted on remote file systems.
This commit is contained in:
parent
487fb706be
commit
4af237d43a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user