Skip to content

Commit 3c8a29a

Browse files
authored
Merge pull request #8358 from nadavMiz/delete-the-latest-version-twice
NSFS | GPFS | fix delete latest object twice on GPFS
2 parents 9639a4b + 088a25f commit 3c8a29a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sdk/namespace_fs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,13 +2911,13 @@ class NamespaceFS {
29112911
const versioned_path = latest_ver_info && this._get_version_path(params.key, latest_ver_info.version_id_str);
29122912
const versioned_info = latest_ver_info && await this._get_version_info(fs_context, versioned_path);
29132913

2914-
gpfs_options = is_gpfs ?
2914+
dbg.log1('Namespace_fs._delete_latest_version:', latest_ver_info, versioned_path, versioned_info);
2915+
if (latest_ver_info) {
2916+
gpfs_options = is_gpfs ?
29152917
await this._open_files_gpfs(fs_context, latest_ver_path,
29162918
undefined, undefined, undefined, undefined, true, versioned_info) :
29172919
undefined;
29182920

2919-
dbg.log1('Namespace_fs._delete_latest_version:', latest_ver_info, versioned_path, versioned_info, gpfs_options);
2920-
if (latest_ver_info) {
29212921
const suspended_and_latest_is_not_null = this._is_versioning_suspended() &&
29222922
latest_ver_info.version_id_str !== NULL_VERSION_ID;
29232923
const bucket_tmp_dir_path = this.get_bucket_tmpdir_full_path();

0 commit comments

Comments
 (0)