Compare commits

...
Author SHA1 Message Date
Hongsheng Liu 00d6984660 [Bugfix] Skip HWR store-size scans when no limit is configured
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
2026-09-06 16:12:19 +08:00
@@ -1247,8 +1247,10 @@ class FilesystemHostWeightStore:
retryable=True, retryable=True,
) )
) )
store_bytes = self._tree_bytes(self.root) if (
if policy.max_store_bytes is not None and store_bytes + additional_bytes > policy.max_store_bytes: policy.max_store_bytes is not None
and self._tree_bytes(self.root) + additional_bytes > policy.max_store_bytes
):
raise HostWeightError( raise HostWeightError(
_failure( _failure(
ResolutionStage.CAPACITY, ResolutionStage.CAPACITY,