From 0177f56fc92536b7fe0c8139ae1e081fd09eacfe Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Sat, 21 Feb 2015 18:41:54 -0800 Subject: DD-335 : Improve the performance of Get listings by 400%, fix a bug when error occured on SLM --- indra/newview/llinventoryfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llinventoryfunctions.cpp') diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 02c4d76a13..3939281d0a 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -274,7 +274,7 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc } // Check if the count on hand needs to be updated on SLM - if (!LLMarketplaceData::instance().isUpdating(listing_uuid) && + if (perform_consistency_enforcement && !LLMarketplaceData::instance().isUpdating(listing_uuid) && (compute_stock_count(listing_uuid) != LLMarketplaceData::instance().getCountOnHand(listing_uuid))) { LLMarketplaceData::instance().updateCountOnHand(listing_uuid); -- cgit v1.2.3