Skip to content

Commit 909a37c

Browse files
committed
NC | lifecycle | remove key_marker and version_marker from state when finished
Signed-off-by: nadav mizrahi <nadav.mizrahi16@gmail.com>
1 parent e558970 commit 909a37c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/manage_nsfs/nc_lifecycle.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ class NCLifecycle {
458458
expire_state.key_marker = objects_list.next_marker;
459459
expire_state.is_finished = false;
460460
} else {
461+
expire_state.key_marker = undefined;
461462
expire_state.is_finished = true;
462463
}
463464
const bucket_state = this.lifecycle_run_status.buckets_statuses[bucket_json.name].state;
@@ -579,6 +580,8 @@ class NCLifecycle {
579580
noncurrent_state.key_marker_versioned = list_versions.next_marker;
580581
noncurrent_state.version_id_marker = list_versions.next_version_id_marker;
581582
} else {
583+
noncurrent_state.key_marker_versioned = undefined;
584+
noncurrent_state.version_id_marker = undefined;
582585
noncurrent_state.is_finished = true;
583586
}
584587
const bucket_state = this.lifecycle_run_status.buckets_statuses[bucket_json.name].state;

0 commit comments

Comments
 (0)