Skip to content

Commit

Permalink
fixing lifecycle after noobaa#8074
Browse files Browse the repository at this point in the history
fixing part change from objects_deletes to num_objects_deleted

Signed-off-by: jackyalbo <jacky.albo@gmail.com>
  • Loading branch information
jackyalbo committed Jun 9, 2024
1 parent 28af670 commit 7854feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/bg_services/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function handle_bucket_rule(system, rule, j, bucket) {
bucket.lifecycle_configuration_rules[j].last_sync = Date.now();
if (res.num_objects_deleted >= config.LIFECYCLE_BATCH_SIZE) should_rerun = true;
dbg.log0('LIFECYCLE Done bucket:', bucket.name, '(bucket id:', bucket._id, ') done deletion of objects per rule',
rule, 'time:', bucket.lifecycle_configuration_rules[j].last_sync, 'objects deleted:', res.objects_deleted,
rule, 'time:', bucket.lifecycle_configuration_rules[j].last_sync, 'objects deleted:', res.num_objects_deleted,
should_rerun ? 'lifecycle should rerun' : '');
update_lifecycle_rules_last_sync(bucket, bucket.lifecycle_configuration_rules);
return should_rerun;
Expand Down
2 changes: 1 addition & 1 deletion src/server/object_services/object_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ async function delete_multiple_objects_by_filter(req) {
}))
}
}));
return { objects_deleted: objects.length };
return { num_objects_deleted: objects.length };
}

/**
Expand Down

0 comments on commit 7854feb

Please sign in to comment.