Reduce number of interactions with UFS in loadMetadata

Description

Currently, in loadMetadata, we unnecessarily call the UFS to syncPersist that a file that we know exists in the UFS. Removing this should help with loadMetadata performance, and performance of those commands that rely on loadMetadata, such as recursive ls and du.

Environment

None

Status

Assignee

David Zhu

Reporter

David Zhu

Labels

None

Components

Fix versions

Affects versions

1.8.0

Priority

Major
Configure