SH-3604 FIX - resolved an issue with simulated failures/retry logic

meow-7.2.2
Brad Payne (Vir Linden) 2012-12-17 13:24:57 -05:00
parent 1701da7300
commit b86a3e39cf
1 changed files with 4 additions and 5 deletions

View File

@ -217,12 +217,12 @@ public:
if (ll_frand()<gSavedSettings.getF32("InventoryDebugSimulateOpFailureRate"))
{
// simulate server failure by not sending the request.
return;
// do nothing
LL_DEBUGS("Avatar") << "simulating failure by not sending request for item " << item_id << " linked_id " << linked_id << llendl;
}
if (!requestOperation(linked_id))
else if (!requestOperation(linked_id))
{
LL_DEBUGS("Avatar") << "item_id " << item_id << " linked_id " << linked_id << " not requested" << llendl;
LL_DEBUGS("Avatar") << "item_id " << item_id << " linked_id " << linked_id << " requestOperation false, skipping" << llendl;
return;
}
@ -237,7 +237,6 @@ public:
{
mRetryCounts[linked_id]++;
}
}
virtual bool requestOperation(const LLUUID& item_id) = 0;