FIRE-33337/BUG-234770 - Avoid rename issue caused by AIS version mismatch

This is a workaround to a wider problem, but the workaround is valid even when the current cause (too many calls to accountForUpdate) is fixed
master
Beq 2023-12-07 21:31:31 +00:00
parent ed332a340d
commit 877e18951e
1 changed files with 9 additions and 0 deletions

View File

@ -1395,6 +1395,15 @@ void AISUpdate::parseCategory(const LLSD& category_map, S32 depth)
{
LL_WARNS() << "Got stale folder, known: " << curr_cat->getVersion()
<< ", received: " << version << LL_ENDL;
// <FS:Beq> FIRE-33337 workaround for rename issue until proper fix is in place and tested
// Also servers a general handler for version de-sync bugs in the future.
if( version < curr_cat->getVersion() )
{
// AIS version is considered canonical, so we need to refetch
curr_cat->setVersion(LLViewerInventoryCategory::VERSION_UNKNOWN);
curr_cat->fetch();
}
// </FS:Beq>
return;
}