diff --git a/scenarios/s3longevity.js b/scenarios/s3longevity.js index 628ba8f..1f6f8c1 100644 --- a/scenarios/s3longevity.js +++ b/scenarios/s3longevity.js @@ -181,15 +181,16 @@ export function obj_read() { if (obj_to_read_selector) { const obj = obj_to_read_selector.nextObject(); - if (!obj) { + if (!obj || (obj.status == "read") ) { return; } const resp = s3_client.get(obj.s3_bucket, obj.s3_key) if (!resp.success) { log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}) .error(resp.error); + } else { + obj_registry.setObjectStatus(obj.id, obj.status, "read"); } - obj_registry.setObjectStatus(obj.id, obj.status, "read"); return }