From 26b7d79a85500c6934780fbfb24282c88eb9b6c9 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Wed, 6 Jul 2016 22:55:42 +0530 Subject: [PATCH] XL/ObjectCache: DeleteObject() should delete the object from the object cache. (#2113) fixes #2103 --- xl-v1-object.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xl-v1-object.go b/xl-v1-object.go index 24e158d62..c30fe6133 100644 --- a/xl-v1-object.go +++ b/xl-v1-object.go @@ -554,6 +554,9 @@ func (xl xlObjects) DeleteObject(bucket, object string) (err error) { return toObjectErr(err, bucket, object) } + // Delete from the cache. + xl.objCache.Delete(pathJoin(bucket, object)) + // Success. return nil }