From 5de44a95023fbfc0c4954038f7d988841da38b87 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 4 Nov 2022 17:05:51 +0800 Subject: [PATCH] don't fail if keyattribute not found in current basis when no basis specified 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. :-/ --- services/pddb/src/backend/basis.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/pddb/src/backend/basis.rs b/services/pddb/src/backend/basis.rs index 12d0db282..42681d0ad 100644 --- a/services/pddb/src/backend/basis.rs +++ b/services/pddb/src/backend/basis.rs @@ -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; } } }