Commit 3aa7000
committed
fix(db): Ignore missing buckets during cleanup
The cleanup deletes all buckets after a build completes. When building
with --only-update for a set of sources, some of the buckets in the
overall set are never created because the sources that populate them are
skipped. Then cleanup fails with "bucket not found" even though the data
update completed.
Ignore bolt.ErrBucketNotFound. This is safe to do since a bucket that
doesn't exist doesn't have to be cleaned up.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>1 parent 8ffac5a commit 3aa7000
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
0 commit comments