Skip to content
Commit 487dded8 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcache: Fix another bug recovering from unclean shutdown



The on disk bucket gens are allowed to be out of date, when we reuse buckets
that didn't have any live data in them. To deal with this, the initial gc has to
update the bucket gen when we find a pointer gen newer than the bucket's gen.

Unfortunately we weren't doing this for pointers in the journal that we're about
to replay.

Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
parent 0bd143fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment