Skip to content

Commit dc4da18

Browse files
committed
Do not log during expiration if the versionID
Issue: CLDSRV-613
1 parent 605a832 commit dc4da18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/api/objectDelete.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ function objectDeleteInternal(authInfo, request, log, isExpiration, cb) {
8989
}
9090

9191
if (versioningCfg && versioningCfg.Status === 'Enabled' &&
92-
objMD.versionId === reqVersionId && isExpiration) {
92+
objMD.versionId === reqVersionId && isExpiration &&
93+
!objMD.isDeleteMarker) {
9394
log.warn('expiration is trying to delete a master version ' +
9495
'of an object with versioning enabled', {
9596
method: 'objectDeleteInternal',

0 commit comments

Comments
 (0)