- for (cur = privctx->backends; cur != NULL && res == NULL;
- cur = cur->next) {
- backend = (struct onak_dbctx *) cur->object;
- res = backend->keyid2uid(backend, keyid);
- }
-
- return res;
-}
-
-static uint64_t stacked_getfullkeyid(struct onak_dbctx *dbctx,
- uint64_t keyid)
-{
- struct onak_stacked_dbctx *privctx =
- (struct onak_stacked_dbctx *) dbctx->priv;
- struct onak_dbctx *backend;
- struct ll *cur;
- uint64_t res = 0;
-
- for (cur = privctx->backends; cur != NULL && res == 0;
- cur = cur->next) {
- backend = (struct onak_dbctx *) cur->object;
- res = backend->getfullkeyid(backend, keyid);
+ res = backend->keyid2uid(backend, keyid);
+ if (!res) {
+ res = generic_keyid2uid(dbctx, keyid);