Skip to content

Commit

Permalink
don't fail if keyattribute not found in current basis when no basis s…
Browse files Browse the repository at this point in the history
…pecified

This is not actually an error, we just need to try another basis
down the list. This is a copypasta bug that was only caught now. :-/
  • Loading branch information
bunnie committed Nov 4, 2022
1 parent 0d9a39a commit 5de44a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/pddb/src/backend/basis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,9 @@ impl BasisCache {
index: kcache.descriptor_index,
})
} else {
return Err(Error::new(ErrorKind::NotFound, "key not found"));
// this is not a hard error, it just means that the key wasn't in this basis.
// that's alright, it could be in one of the other ones!
continue;
}
}
}
Expand Down

0 comments on commit 5de44a9

Please sign in to comment.