Add default-enabled error log when there is a corrupted history entry

We'll drop the corrupted item on the next vacuum, so this shouldn't be
too annoying, and hopefully helps to narrow down #10300 further.
This commit is contained in:
Johannes Altmanninger 2024-10-06 11:45:53 +02:00
parent 9c4d31f89a
commit efa109b62e

View file

@ -494,6 +494,15 @@ fn offset_of_next_item_fish_2_0(
continue;
}
if line.starts_with(b"\0") {
FLOG!(
error,
"ignoring corrupted history entry around offset",
*cursor
);
continue;
}
if !line.starts_with(b"- cmd") {
FLOG!(
history,