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 ed8009a commit 0750966Copy full SHA for 0750966
pc/user.cpp
@@ -343,6 +343,13 @@ void user::parse_get_product( uint32_t tok, uint32_t itok )
343
pub_key pkey;
344
pkey.init_from_text( jp_.get_str( ntok ) );
345
product *prod = sptr_->get_product( pkey );
346
+
347
+ // If the product is not present in the primary manager's mapping,
348
+ // attempt to use the one in the secondary manager's mapping instead.
349
+ if ( PC_UNLIKELY( !prod && sptr_->has_secondary() ) ) {
350
+ prod = sptr_->get_secondary()->get_product( pkey );
351
+ }
352
353
if ( PC_UNLIKELY( !prod ) )
354
return add_unknown_symbol( itok );
355
0 commit comments