Skip to content

Commit 8bffa2a

Browse files
committed
NSFS | GPFS | fix delete latest object twice on GPFS
Signed-off-by: nadav mizrahi <[email protected]>
1 parent 8aefb7e commit 8bffa2a

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
@@ -2921,13 +2921,13 @@ class NamespaceFS {
29212921
const versioned_path = latest_ver_info && this._get_version_path(params.key, latest_ver_info.version_id_str);
29222922
const versioned_info = latest_ver_info && await this._get_version_info(fs_context, versioned_path);
29232923

2924-
gpfs_options = is_gpfs ?
2924+
dbg.log1('Namespace_fs._delete_latest_version:', latest_ver_info, versioned_path, versioned_info);
2925+
if (latest_ver_info) {
2926+
gpfs_options = is_gpfs ?
29252927
await this._open_files_gpfs(fs_context, latest_ver_path,
29262928
undefined, undefined, undefined, undefined, true, versioned_info) :
29272929
undefined;
29282930

2929-
dbg.log1('Namespace_fs._delete_latest_version:', latest_ver_info, versioned_path, versioned_info, gpfs_options);
2930-
if (latest_ver_info) {
29312931
const suspended_and_latest_is_not_null = this._is_versioning_suspended() &&
29322932
latest_ver_info.version_id_str !== NULL_VERSION_ID;
29332933
const bucket_tmp_dir_path = this.get_bucket_tmpdir_full_path();

0 commit comments

Comments
 (0)