@@ -2930,9 +2930,9 @@ class NamespaceFS {
2930
2930
const bucket_tmp_dir_path = this . get_bucket_tmpdir_full_path ( ) ;
2931
2931
if ( this . _is_versioning_enabled ( ) || suspended_and_latest_is_not_null ) {
2932
2932
await native_fs_utils . _make_path_dirs ( versioned_path , fs_context ) ;
2933
- await native_fs_utils . safe_move ( fs_context , latest_ver_path , versioned_path , latest_ver_info ,
2933
+ await native_fs_utils . safe_move ( fs_context , latest_ver_path , versioned_path , latest_ver_info ,
2934
2934
gpfs_options && gpfs_options . delete_version , bucket_tmp_dir_path ) ;
2935
- if ( suspended_and_latest_is_not_null ) {
2935
+ if ( suspended_and_latest_is_not_null ) {
2936
2936
// remove a version (or delete marker) with null version ID from .versions/ (if exists)
2937
2937
await this . _delete_null_version_from_versions_directory ( params . key , fs_context ) ;
2938
2938
}
@@ -2945,9 +2945,9 @@ class NamespaceFS {
2945
2945
}
2946
2946
break ;
2947
2947
} catch ( err ) {
2948
+ dbg . warn ( `NamespaceFS._delete_latest_version: Retrying retries=${ retries } latest_ver_path=${ latest_ver_path } ` , err ) ;
2948
2949
retries -= 1 ;
2949
2950
if ( retries <= 0 || ! native_fs_utils . should_retry_link_unlink ( is_gpfs , err ) ) throw err ;
2950
- dbg . warn ( `NamespaceFS._delete_latest_version: Retrying retries=${ retries } latest_ver_path=${ latest_ver_path } ` , err ) ;
2951
2951
} finally {
2952
2952
if ( gpfs_options ) await this . _close_files_gpfs ( fs_context , gpfs_options . delete_version , undefined , true ) ;
2953
2953
}
0 commit comments