mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a problem with the previous change to malloc_common.tcl.
FossilOrigin-Name: e07a33ea0fd50d56f2d00965c754e652c48f32fb
This commit is contained in:
@ -611,9 +611,10 @@ proc forcedelete {filename} {
|
||||
#
|
||||
set nRetry 50 ;# Maximum number of retries.
|
||||
set nDelay 100 ;# Delay in ms before retrying.
|
||||
set rc 1
|
||||
for {set i 0} {$i<$nRetry && $rc} {incr i} {
|
||||
for {set i 0} {$i<$nRetry} {incr i} {
|
||||
set rc [catch {file delete -force $filename} msg]
|
||||
if {$rc==0} continue
|
||||
after $nDelay
|
||||
}
|
||||
if {$rc} { error $msg }
|
||||
}
|
||||
|
Reference in New Issue
Block a user