commit 5dd3704650a6f12a50ba52395cf5e518e6e1e4d2
parent a96879df1d60f5a97ecd04281b3c0e567ea0a5d5
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 3 Jan 2010 17:15:26 -0500
add Xapian flush message
The simple solution to the "Xapian takes a long time to flush upon exit"
problem is to inform the user what's going on.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb
@@ -48,6 +48,8 @@ EOS
end
def save_index
+ info "Flushing Xapian updates to disk. This may take a while..."
+ @xapian.flush
end
def optimize