From 5da5f0a342c5db6830f8a234cd4045c23c640423 Mon Sep 17 00:00:00 2001 From: agonizerq Date: Wed, 25 Nov 2026 12:57:18 -0500 Subject: [PATCH] fix(storage): persist inline-data cleanup in CleanAbandonedData CleanAbandonedData removes abandoned inline data directories from the in-memory xl.meta (xl.data.remove), serializes the modified metadata into newBuf, but then writes the ORIGINAL buffer (buf) back to disk. As a result the inline-data cleanup never persisted and abandoned inline entries reappear on the next read. Write newBuf instead of buf so the cleaned metadata is what gets persisted to xl.meta. Signed-off-by: agonizerq --- cmd/xl-storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/xl-storage.go b/cmd/xl-storage.go index b96937e43..f009d6797 100644 --- a/cmd/xl-storage.go +++ b/cmd/xl-storage.go @@ -3366,7 +3366,7 @@ func (s *xlStorage) CleanAbandonedData(ctx context.Context, volume string, path newBuf, err := xl.AppendTo(metaDataPoolGet()) if err == nil { defer metaDataPoolPut(newBuf) - return s.WriteAll(ctx, volume, pathJoin(path, xlStorageFormatFile), buf) + return s.WriteAll(ctx, volume, pathJoin(path, xlStorageFormatFile), newBuf) } } return nil