Skip to content

Commit

Permalink
Merge pull request #8500 from nadavMiz/versioning-use-deleted-file-ve…
Browse files Browse the repository at this point in the history
…rsion

use delete_version src file instead of move_to_dest dest_file to get latest version
  • Loading branch information
nadavMiz authored Nov 3, 2024
2 parents 9f8b097 + 4b6009c commit 64336ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk/namespace_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3025,7 +3025,7 @@ class NamespaceFS {
if (is_gpfs) {
gpfs_options = await this._open_files_gpfs(fs_context, latest_ver_path, undefined, undefined, undefined,
undefined, true);
const latest_fd = gpfs_options?.move_to_dst?.dst_file;
const latest_fd = gpfs_options?.delete_version?.src_file;
latest_ver_info = latest_fd && await this._get_version_info(fs_context, undefined, latest_fd);
if (!latest_ver_info) break;
}
Expand Down

0 comments on commit 64336ec

Please sign in to comment.