tagcache: Prevent a infinite tagcache scan/commit loop

If no new entries were committed, there's no need to kick
off a new scan/autoupdate.

Change-Id: I3e8e497e4fe04d46612401e1ec6b72f30a8b77a4
This commit is contained in:
Solomon Peachy 2026-02-23 19:30:18 -05:00
parent dfa33c246b
commit e15451815a

View file

@ -3549,8 +3549,8 @@ static bool commit(void)
tcrc_buffer_unlock();
}
/* Reload tagcache. */
if (tc_stat.ramcache_allocated > 0)
/* Reload tagcache only if we committed new entries */
if (tc_stat.ramcache_allocated > 0 && tch.entry_count > 0)
tagcache_start_scan();
#endif /* HAVE_TC_RAMCACHE */