mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-15 02:28:31 +02:00
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:
1 parent
2c84bb1161
commit
318e1c64d6
1 file changed
-6
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user