From 91bddcc25a4c87ab73fb6efc19e88eea30ede617 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Sat, 31 Jan 2015 11:42:12 +0300 Subject: [PATCH] Slob: One more fix for full-text search indexing --- slob.cc | 2 +- zim.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slob.cc b/slob.cc index 28d829e8..ae252a00 100644 --- a/slob.cc +++ b/slob.cc @@ -1029,7 +1029,7 @@ void SlobDictionary::makeFTSIndex( QAtomicInt & isCancelled, bool firstIteration ftsIdxHeader.indexRootOffset = ftsIdxInfo.rootOffset; ftsIdxHeader.signature = FtsHelpers::FtsSignature; - ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion; + ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion + getFtsIndexVersion(); ftsIdx.rewind(); ftsIdx.writeRecords( &ftsIdxHeader, sizeof(ftsIdxHeader), 1 ); diff --git a/zim.cc b/zim.cc index c9546a16..b9925e4b 100644 --- a/zim.cc +++ b/zim.cc @@ -839,7 +839,7 @@ void ZimDictionary::makeFTSIndex( QAtomicInt & isCancelled, bool firstIteration ftsIdxHeader.indexRootOffset = ftsIdxInfo.rootOffset; ftsIdxHeader.signature = FtsHelpers::FtsSignature; - ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion; + ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion + getFtsIndexVersion(); ftsIdx.rewind(); ftsIdx.writeRecords( &ftsIdxHeader, sizeof(ftsIdxHeader), 1 );