mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
opt: record xapian total length
This commit is contained in:
parent
446c804c7d
commit
4ce76b7894
|
@ -164,7 +164,8 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell
|
||||||
db.commit();
|
db.commit();
|
||||||
|
|
||||||
db.compact( dict->ftsIndexName() );
|
db.compact( dict->ftsIndexName() );
|
||||||
|
auto totalLength = db.get_total_length();
|
||||||
|
qDebug() << "xapian database total length(compact):" << totalLength;
|
||||||
db.close();
|
db.close();
|
||||||
|
|
||||||
Utils::Fs::removeDirectory( dict->ftsIndexName() + "_temp" );
|
Utils::Fs::removeDirectory( dict->ftsIndexName() + "_temp" );
|
||||||
|
|
Loading…
Reference in a new issue