Skip to content

Commit 2be1813

Browse files
committed
Fix CrrExistingObjects skipping versions when listing
The listing function from metadata expects versionIdMarker to equal the non encoded versionId of the next version to list. However, currently we give it the encoded versionId, which causes the listing algo to skip some versions, as the versionId is used to skip all previous versions until versionIdMarker is reached. Using the encoded versionId in the check results in unpredictable behaviour that can skip multiple versions from the listing. Issue: S3UTILS-185
1 parent 1be6653 commit 2be1813

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

CrrExistingObjects/metadataUtils.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ const nonVersionedObjId = versionIdUtils.getInfVid(REPLICATION_GROUP_ID);
1111

1212
function _processVersions(list) {
1313
/* eslint-disable no-param-reassign */
14-
list.NextVersionIdMarker = list.NextVersionIdMarker
15-
? versionIdUtils.encode(list.NextVersionIdMarker)
16-
: list.NextVersionIdMarker;
17-
1814
list.Versions.forEach(v => {
1915
v.VersionId = v.VersionId
2016
? versionIdUtils.encode(v.VersionId) : v.VersionId;

0 commit comments

Comments
 (0)