Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: return structured errors from checkConsistency
During Open, Pebble verifies the consistency between the Version and the object catalog. Previously if this function encountered an error or inconsistency, it would return a new error that erased the type(s) of the original errors. This commit modifies the function to use errors.Join and avoid the type erasure. This is necessary for the metamorphic test's error injection, which must be able to test an error to observe whether it is an errorfs.ErrInjected error. Informs cockroachdb#1115.
- Loading branch information