From 1cd801b2e9736224415b8a673d2386f25ddc0dc2 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Wed, 14 Aug 2019 23:45:25 +0530 Subject: [PATCH] Fix DeleteObjects() to remove renamed objects inside (#8072) --- cmd/object-api-common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/object-api-common.go b/cmd/object-api-common.go index 4ba3603d0..0acdd2ac9 100644 --- a/cmd/object-api-common.go +++ b/cmd/object-api-common.go @@ -185,7 +185,7 @@ func cleanupObjectsBulk(ctx context.Context, storage StorageAPI, volume string, if errs[idx] != nil { continue } - output, err := traverse(objPath) + output, err := traverse(retainSlash(pathJoin(objPath))) if err != nil { errs[idx] = err continue