@@ -2930,9 +2930,9 @@ class NamespaceFS {
29302930 const bucket_tmp_dir_path = this . get_bucket_tmpdir_full_path ( ) ;
29312931 if ( this . _is_versioning_enabled ( ) || suspended_and_latest_is_not_null ) {
29322932 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 ,
29342934 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 ) {
29362936 // remove a version (or delete marker) with null version ID from .versions/ (if exists)
29372937 await this . _delete_null_version_from_versions_directory ( params . key , fs_context ) ;
29382938 }
@@ -2945,9 +2945,9 @@ class NamespaceFS {
29452945 }
29462946 break ;
29472947 } catch ( err ) {
2948+ dbg . warn ( `NamespaceFS._delete_latest_version: Retrying retries=${ retries } latest_ver_path=${ latest_ver_path } ` , err ) ;
29482949 retries -= 1 ;
29492950 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 ) ;
29512951 } finally {
29522952 if ( gpfs_options ) await this . _close_files_gpfs ( fs_context , gpfs_options . delete_version , undefined , true ) ;
29532953 }
0 commit comments