X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_nightly;h=ff26182dc718f06d93fb8ce9be483e9923e41e9b;hp=2639b412005fc06f29da3dabb0ab52a82b8f41c1;hb=caa62f13e4ab659d296afbce7bcd01c3c77cf7bb;hpb=df717077755b9331fa245f72933ef03add7a3710 diff --git a/bin/BackupPC_nightly b/bin/BackupPC_nightly index 2639b41..ff26182 100755 --- a/bin/BackupPC_nightly +++ b/bin/BackupPC_nightly @@ -55,7 +55,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta3, released 3 Dec 2006. # # See http://backuppc.sourceforge.net. # @@ -170,6 +170,15 @@ for my $pool ( qw(pool cpool) ) { $dirCnt++ if ( ($i % 16) == 0 && -d "$TopDir/$pool/$hexChars[int($i / 16)]" ); + # + # We need to process all pending deletes before we do the + # renames + # + if ( @PendingDelete ) { + sleep(1); + processPendingDeletes(1); + } + # # Now make sure that files with repeated checksums are still # sequentially numbered @@ -203,7 +212,7 @@ for my $pool ( qw(pool cpool) ) { } } -sleep(10); +sleep(1); processPendingDeletes(1); ###########################################################################