summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-11-10 22:14:50 -0800
committerMerov Linden <merov@lindenlab.com>2014-11-10 22:14:50 -0800
commit70a2956f584f554d1f0fd3b12890671ac47ea1f2 (patch)
treeee7adc30f5d87330cada5c0b499cb1cc8f8949d1
parent1461740a6818c752d3780f04431a4b3948616eb5 (diff)
DD-276, DD-280 : Serialize update count on SLM by preventing sending update while previous transaction not completed
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index ac1efa5471..461631288c 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -178,7 +178,8 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc
}
// Check if the count on hand needs to be updated on SLM
- if (compute_stock_count(listing_uuid) != LLMarketplaceData::instance().getCountOnHand(listing_uuid))
+ if (!LLMarketplaceData::instance().isUpdating(listing_uuid) &&
+ (compute_stock_count(listing_uuid) != LLMarketplaceData::instance().getCountOnHand(listing_uuid)))
{
LLMarketplaceData::instance().updateCountOnHand(listing_uuid);
}
@@ -195,7 +196,7 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc
}
else
{
- // If the folder is outside the marletplace listings root, clear its SLM data if needs be
+ // If the folder is outside the marketplace listings root, clear its SLM data if needs be
if (perform_consistency_enforcement && LLMarketplaceData::instance().isListed(cur_uuid))
{
LL_INFOS("SLM") << "Disassociate as the listing folder is not under the marketplace folder anymore!!" << LL_ENDL;