From d892b1633be9cfd75f3254578e9064b5cc94aa5a Mon Sep 17 00:00:00 2001 From: "m.malygina" Date: Wed, 5 Jun 2024 18:20:33 +0300 Subject: [PATCH] Added read status to obj Signed-off-by: m.malygina --- internal/registry/obj_registry.go | 2 +- scenarios/s3longevity.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/registry/obj_registry.go b/internal/registry/obj_registry.go index 887ef89..486fd1c 100644 --- a/internal/registry/obj_registry.go +++ b/internal/registry/obj_registry.go @@ -83,7 +83,7 @@ func (o *ObjRegistry) SetObjectStatus(id uint64, oldStatus, newStatus string) er key := encodeId(id) objBytes := oldB.Get(key) if objBytes == nil { - return fmt.Errorf("object %s doesn't exist", key) + return fmt.Errorf("object %s doesn't exist !!!!!!!!!!!", string(key)) } if err := oldB.Delete(key); err != nil { return fmt.Errorf("bucket.Delete: %w", err) diff --git a/scenarios/s3longevity.js b/scenarios/s3longevity.js index 24ea2c6..9c48d86 100644 --- a/scenarios/s3longevity.js +++ b/scenarios/s3longevity.js @@ -189,7 +189,7 @@ export function obj_read() { .error(resp.error); } else { log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}).info("read successfully"); - obj_registry.setObjectStatus(obj.s3_key, obj.status, 'read'); + obj_registry.setObjectStatus(obj.id, obj.status, 'read'); } return