From 645e53dd165944657fd0ebf7a93630b712569c40 Mon Sep 17 00:00:00 2001 From: "m.malygina" Date: Wed, 5 Jun 2024 16:49:45 +0300 Subject: [PATCH] Added read status to obj Signed-off-by: m.malygina --- scenarios/s3longevity.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }