filer: let repack handle S3-versioned entries

Every object version owns its chunk list, so rewriting one version's
chunks cannot affect a sibling. Drop the guard.
This commit is contained in:
Chris Lu committed 2026-08-10 17:32:37 -07:00
1 parent 2c84bb1161
commit 318e1c64d6
1 file changed
-6
-6
View File
@@ -265,12 +265,6 @@ func (fs *FilerServer) formatRepack(ctx context.Context, w http.ResponseWriter,
writeJsonError(w, r, http.StatusBadRequest, errors.New("cannot repack hard-linked or remote entries"))
return
}
// S3 object versions may share one chunk list; deleting the old chunks
// here would corrupt sibling versions.
if entry.IsS3Versioning() {
writeJsonError(w, r, http.StatusBadRequest, errors.New("cannot repack S3-versioned entries"))
return
}
for _, chunk := range oldChunks {
if chunk.SseType != filer_pb.SSEType_NONE {
writeJsonError(w, r, http.StatusBadRequest, errors.New("cannot repack server-side encrypted entries"))