print selectionSize

Signed-off-by: m.malygina <m.malygina@yadro.com>
m.malygina 2024-06-19 13:14:32 +03:00
parent f26092cccd
commit f091a1f0b9
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,7 @@ if (registry_enabled && delete_age) {
obj_to_delete_selector =
constructor(__ENV.REGISTRY_FILE, 'obj_to_delete',
__ENV.SELECTION_SIZE ? parseInt(__ENV.SELECTION_SIZE) : 0, {
status : 'created',
status : 'read',
age : delete_age,
});
}
@ -185,6 +185,8 @@ export function obj_read() {
if (!resp.success) {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, op : 'READ'})
.error(resp.error);
} else {
obj_registry.setObjectStatus(obj.id, obj.status, 'read');
}
return
}