util/fossilize_db: Reset file position to parsed_offset on cache_offset read failure.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 5 Aug 2021 01:03:48 +0000 (03:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 7 Aug 2021 20:06:31 +0000 (20:06 +0000)
commit57ca07455ce03006aa4f6b66a5b0fe67570a1593
tree035827b1460463781382c9c7013fa8ced4824cdf
parent3c51a3aa954bb09ceb7c101dc02c1b11fb250bbf
util/fossilize_db: Reset file position to parsed_offset on cache_offset read failure.

Otherwise we might restart reading from the middle of the entry.

Fixes: 2ec1bff0f3a "util/fossilize_db: Split out reading the index."
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12204>
src/util/fossilize_db.c