We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e26ac commit 8a4a2e4Copy full SHA for 8a4a2e4
pc/user.cpp
@@ -339,6 +339,13 @@ void user::parse_get_product( uint32_t tok, uint32_t itok )
339
pub_key pkey;
340
pkey.init_from_text( jp_.get_str( ntok ) );
341
product *prod = sptr_->get_product( pkey );
342
+
343
+ // If the product is not present in the primary manager's mapping,
344
+ // attempt to use the one in the secondary manager's mapping instead.
345
+ if ( PC_UNLIKELY( !prod && sptr_->has_secondary() ) ) {
346
+ prod = sptr_->get_secondary()->get_product( pkey );
347
+ }
348
349
if ( PC_UNLIKELY( !prod ) )
350
return add_unknown_symbol( itok );
351
0 commit comments