Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
add message to output when file delete search starts and ends
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Angell committed Apr 4, 2012
1 parent 5832cc2 commit 786497d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/backup.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def backup(o = {})
#very large domain. In my testing, it is able to get through domains with millions of files in a matter of a second. So #very large domain. In my testing, it is able to get through domains with millions of files in a matter of a second. So
#all in all it's not so bad #all in all it's not so bad
if !o[:no_delete] if !o[:no_delete]

Log.instance.info("Start: Search for files to delete")
BakFile.find_in_batches { |bak_files| BakFile.find_in_batches { |bak_files|
union = "SELECT #{bak_files.first.fid} as fid" union = "SELECT #{bak_files.first.fid} as fid"
bak_files.shift bak_files.shift
Expand All @@ -198,9 +198,7 @@ def backup(o = {})
#Terminate program if the signal handler says so and this is a clean place to do it #Terminate program if the signal handler says so and this is a clean place to do it
return true if SignalHandler.instance.should_quit return true if SignalHandler.instance.should_quit
} }

Log.instance.info("End: Search for files to delete")


end end


#Break out of infinite loop unless o[:non_stop] is set #Break out of infinite loop unless o[:non_stop] is set
Expand Down

0 comments on commit 786497d

Please sign in to comment.