summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodelbackgroundfetch.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-11 01:33:24 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-11 01:58:28 +0300
commit69e3b5fb4014ef900b129ebde49325f1b074e773 (patch)
treef48beae454d6dfd8734f068b79a495f016b54d54 /indra/newview/llinventorymodelbackgroundfetch.cpp
parent4ce1e68ccb3be42b33cf2dcb58ffb6e78e382016 (diff)
SL-19533 Orphans plus additional logging
Diffstat (limited to 'indra/newview/llinventorymodelbackgroundfetch.cpp')
-rw-r--r--indra/newview/llinventorymodelbackgroundfetch.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/indra/newview/llinventorymodelbackgroundfetch.cpp b/indra/newview/llinventorymodelbackgroundfetch.cpp
index e988f949e2..35b9442966 100644
--- a/indra/newview/llinventorymodelbackgroundfetch.cpp
+++ b/indra/newview/llinventorymodelbackgroundfetch.cpp
@@ -461,10 +461,13 @@ void LLInventoryModelBackgroundFetch::incrFetchFolderCount(S32 fetching)
void ais_simple_folder_callback(const LLUUID& inv_id)
{
LLInventoryModelBackgroundFetch::instance().incrFetchFolderCount(-1);
- LLViewerInventoryCategory * cat(gInventory.getCategory(inv_id));
- if (cat)
+ if (inv_id.notNull()) // null normally means a failure, but is an expected response for orphans
{
- cat->setFetching(LLViewerInventoryCategory::FETCH_NONE);
+ LLViewerInventoryCategory* cat(gInventory.getCategory(inv_id));
+ if (cat)
+ {
+ cat->setFetching(LLViewerInventoryCategory::FETCH_NONE);
+ }
}
}
@@ -580,6 +583,11 @@ void LLInventoryModelBackgroundFetch::bulkFetchViaAis()
mFetchItemQueue.pop_front();
curent_time = LLTimer::getTotalSeconds();
}
+
+ LL_DEBUGS(LOG_INV , "AIS3") << "Total active fetches: " << mFetchCount
+ << ", scheduled fodler fetches: " << (S32)mFetchFolderQueue.size()
+ << ", scheduled item fetches: " << (S32)mFetchItemQueue.size()
+ << LL_ENDL;
if (isFolderFetchProcessingComplete() && mFolderFetchActive)
{
@@ -600,7 +608,8 @@ void LLInventoryModelBackgroundFetch::bulkFetchViaAis(const FetchQueueInfo& fetc
if (cat_id.isNull())
{
// Lost and found
- AISAPI::FetchCategoryChildren("lstndfnd", true, ais_simple_folder_callback);
+ // Should it actually be recursive?
+ AISAPI::FetchOrphans(ais_simple_folder_callback);
incrFetchFolderCount(1);
}
else