add logs to delete

Signed-off-by: m.malygina <m.malygina@yadro.com>
m.malygina 2024-06-20 12:00:07 +03:00
parent 34542788b8
commit 3bdc45005f
1 changed files with 1 additions and 2 deletions

View File

@ -73,9 +73,8 @@ if (write_vu_count > 0) {
const delete_age = __ENV.DELETE_AGE ? parseInt(__ENV.DELETE_AGE) : undefined;
let obj_to_delete_selector = undefined;
let obj_to_delete_exit_on_null = undefined;
let obj_to_delete_exit_on_null = __ENV.DELETE_DONT_EXIT_ON_NULL? __ENV.DELETE_DONT_EXIT_ON_NULL : (write_vu_count == 0);
if (registry_enabled && delete_age) {
obj_to_delete_exit_on_null = write_vu_count != 0;//write_vu_count == 0;
console.log(`obj_to_delete_exit_on_null: ${obj_to_delete_exit_on_null}`);
let constructor = obj_to_delete_exit_on_null ? registry.getOneshotSelector