BFS: Implement the trivial case of Volume::CheckForLiveQuery.

Saves a bit of work when there are no live queries running
(as will often be the case on an idle system.)
This commit is contained in:
Augustin Cavalier
2026-01-29 18:01:37 -05:00
parent 18dd362efa
commit 377f154bf0
@@ -456,8 +456,9 @@ Volume::UpdateLiveQueriesRenameMove(Inode* inode, ino_t oldDirectoryID,
bool
Volume::CheckForLiveQuery(const char* attribute)
{
MutexLocker _(fQueryLock);
// TODO: check for a live query that depends on the specified attribute
return true;
return !fQueries.IsEmpty();
}