Fix slow content scans.

The check for unsupported content was reversed which was causing files to be checked against every database. Correcting this improves performance drastically. This appears to have been broken since at least commit #fc1f2cdcf.
This commit is contained in:
Aaron Oneal 2017-09-06 20:49:47 -07:00
parent 7d3330da74
commit 48550235d5

View File

@ -414,7 +414,7 @@ static int task_database_iterate_crc_lookup(
unsupported_content = core_info_unsupported_content_path(name);
/* don't scan files that can't be in this database */
if(!db_supports_content && !unsupported_content)
if(!db_supports_content || unsupported_content)
return database_info_list_iterate_next(db_state);
snprintf(query, sizeof(query),