commit 09f987e08b028d47a15f3a18700bb497063ec49f
parent 41afb3f131171fd680b6249d9f33313dce59a27e
Author: Dan Callaghan <djc@djc.id.au>
Date: Sun, 5 Apr 2026 21:14:08 +1000
use Xapian commit method instead of flush
It was added in Xapian 1.1. Xapian::WritableDatabase::flush is
deprecated and removed in Xapian 2.0.
Relates to #627.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -142,7 +142,7 @@ EOS
def save_index
info "Flushing Xapian updates to disk. This may take a while..."
- @xapian.flush
+ @xapian.commit
end
def contains_id? id