Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: db compaction cmd #4329

Merged
merged 21 commits into from
Sep 23, 2023
Prev Previous commit
Next Next commit
fix: save
  • Loading branch information
istae committed Sep 22, 2023
commit d2a737e982aaa80ed4de4e4073232d61e1ea0865
2 changes: 1 addition & 1 deletion pkg/storer/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Compact(ctx context.Context, basePath string, opts *Options, validate bool)

select {
case <-ctx.Done():
return ctx.Err()
return errors.Join(ctx.Err(), sharkyRecover.Save())
default:
}

Expand Down