Skip to content

Commit

Permalink
feat: Proxy支持删除未同步的文件存储 TencentBlueKing#1836
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Mar 14, 2024
1 parent f928d1c commit 3e874b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ package com.tencent.bkrepo.proxy.artifact.resource
import com.tencent.bkrepo.common.api.constant.HttpStatus
import com.tencent.bkrepo.common.artifact.manager.ProxyBlobCacheWriter
import com.tencent.bkrepo.common.artifact.manager.resource.AbstractNodeResource
import com.tencent.bkrepo.common.artifact.pojo.RepositoryType
import com.tencent.bkrepo.common.artifact.stream.ArtifactInputStream
import com.tencent.bkrepo.common.artifact.stream.Range
import com.tencent.bkrepo.common.artifact.stream.artifactStream
Expand Down Expand Up @@ -61,7 +62,7 @@ class ProxyNodeResource(

override fun exists(): Boolean {
return try {
blobReplicaClient.check(sha256, storageKey).data ?: false
blobReplicaClient.check(sha256, storageKey, RepositoryType.GENERIC.name).data ?: false
} catch (exception: Exception) {
logger.error("Failed to check blob data[$sha256] in remote node.", exception)
false
Expand Down

0 comments on commit 3e874b0

Please sign in to comment.