mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +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);
|
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;
|
return EL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user