Skip to content

Commit

Permalink
fixup! fixup! skip already transitioned objects in data-mover
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerkesni committed Jul 24, 2024
1 parent 99614ba commit 1302179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/replication/tasks/CopyLocationTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ class CopyLocationTask extends BackbeatTask {
}
log.info('action execution ended', actionEntry.getLogInfo());
// skip object if it was already transitioned
if (err & (err.InvalidObjectState || err.code === 'InvalidObjectState')) {
if (err && (err.InvalidObjectState || err.code === 'InvalidObjectState')) {
log.info('object skipped: invalid object state', actionEntry.getLogInfo());
return { committable: true };

Check warning on line 835 in extensions/replication/tasks/CopyLocationTask.js

View check run for this annotation

Codecov / codecov/patch/Backbeat

extensions/replication/tasks/CopyLocationTask.js#L834-L835

Added lines #L834 - L835 were not covered by tests
}
Expand Down

0 comments on commit 1302179

Please sign in to comment.