File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
crates/database/src/text_index_worker Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,10 @@ impl<RT: Runtime> TextIndexFlusher<RT> {
144144 // has grown too large or has the wrong format, it needs to be backfilled.
145145 let needs_backfill = match & on_disk_state {
146146 TextIndexState :: Backfilling ( _) => Some ( BuildReason :: Backfilling ) ,
147- TextIndexState :: SnapshottedAt ( TextIndexSnapshot { version, .. } )
148- | TextIndexState :: Backfilled ( TextIndexSnapshot { version, .. } )
149- if * version != expected_version =>
147+ TextIndexState :: SnapshottedAt ( TextIndexSnapshot { version, data, .. } )
148+ | TextIndexState :: Backfilled ( TextIndexSnapshot { version, data, .. } )
149+ if * version != expected_version
150+ || !matches ! ( data, TextIndexSnapshotData :: SingleSegment ( _) ) =>
150151 {
151152 Some ( BuildReason :: VersionMismatch )
152153 } ,
You can’t perform that action at this time.
0 commit comments