aboutsummaryrefslogtreecommitdiff
path: root/weed/server/postgres/protocol.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-12-02 17:00:05 -0800
committerGitHub <noreply@github.com>2025-12-02 17:00:05 -0800
commit51841a2e04c973aa9c13422ad771858f98eee182 (patch)
tree58b805c16e57111ce81337569dcf74138456819f /weed/server/postgres/protocol.go
parent4f038820dc480a7374b928a17cc9121474ba4172 (diff)
downloadseaweedfs-51841a2e04c973aa9c13422ad771858f98eee182.tar.xz
seaweedfs-51841a2e04c973aa9c13422ad771858f98eee182.zip
fix: skip cookie validation for EC volume deletion when SkipCookieCheck is set (#7608)
fix: EC volume deletion issues Fixes #7489 1. Skip cookie check for EC volume deletion when SkipCookieCheck is set When batch deleting files from EC volumes with SkipCookieCheck=true (e.g., orphan file cleanup), the cookie is not available. The deletion was failing with 'unexpected cookie 0' because DeleteEcShardNeedle always validated the cookie. 2. Optimize doDeleteNeedleFromAtLeastOneRemoteEcShards to return early Return immediately when a deletion succeeds, instead of continuing to try all parity shards unnecessarily. 3. Remove useless log message that always logged nil error The log at V(1) was logging err after checking it was nil. Regression introduced in commit 7bdae5172 (Jan 3, 2023) when EC batch delete support was added.
Diffstat (limited to 'weed/server/postgres/protocol.go')
0 files changed, 0 insertions, 0 deletions