]> git.cworth.org Git - sup/blobdiff - bin/sup-sync
improve sup-sync-back "nothing to do" error message
[sup] / bin / sup-sync
index 611afc4c6ccdfbd42120fcd7071216ac98fc72aa..4a05257f9b515374ee9235629a3a906a09b024cc 100644 (file)
@@ -227,6 +227,8 @@ begin
     $stderr.puts "Deleted #{num_del} / #{num_scanned} messages"
   end
 
+  index.save
+
   if opts[:optimize]
     $stderr.puts "Optimizing index..."
     optt = time { index.index.optimize unless opts[:dry_run] }
@@ -238,7 +240,6 @@ rescue Exception => e
   File.open("sup-exception-log.txt", "w") { |f| f.puts e.backtrace }
   raise
 ensure
-  #index.save # actually, don't want to save!
   Redwood::finish
   index.unlock
 end