Skip to content

Commit d24320f

Browse files
committed
NSFS | GPFS | add undefine check for delete_last_version
Signed-off-by: nadav mizrahi <nadav.mizrahi16@gmail.com>
1 parent 15eab01 commit d24320f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sdk/namespace_fs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,8 +3025,9 @@ class NamespaceFS {
30253025
undefined, true);
30263026
const latest_fd = gpfs_options?.move_to_dst?.dst_file;
30273027
latest_ver_info = latest_fd && await this._get_version_info(fs_context, undefined, latest_fd);
3028+
if (!latest_ver_info) break;
30283029
}
3029-
const versioned_path = latest_ver_info && this._get_version_path(params.key, latest_ver_info.version_id_str);
3030+
const versioned_path = this._get_version_path(params.key, latest_ver_info.version_id_str);
30303031

30313032
const suspended_and_latest_is_not_null = this._is_versioning_suspended() &&
30323033
latest_ver_info.version_id_str !== NULL_VERSION_ID;

0 commit comments

Comments
 (0)