Skip to content

Commit

Permalink
Merge pull request #8489 from nadavMiz/add_null_check_versioning
Browse files Browse the repository at this point in the history
NSFS | GPFS | add undefine check for delete_last_version
  • Loading branch information
nadavMiz authored Oct 30, 2024
2 parents 15eab01 + d24320f commit 0b9e0d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sdk/namespace_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3025,8 +3025,9 @@ class NamespaceFS {
undefined, true);
const latest_fd = gpfs_options?.move_to_dst?.dst_file;
latest_ver_info = latest_fd && await this._get_version_info(fs_context, undefined, latest_fd);
if (!latest_ver_info) break;
}
const versioned_path = latest_ver_info && this._get_version_path(params.key, latest_ver_info.version_id_str);
const versioned_path = this._get_version_path(params.key, latest_ver_info.version_id_str);

const suspended_and_latest_is_not_null = this._is_versioning_suspended() &&
latest_ver_info.version_id_str !== NULL_VERSION_ID;
Expand Down

0 comments on commit 0b9e0d1

Please sign in to comment.