File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,8 @@ impl<RT: Runtime> SearchIndexFlusher<RT> {
177
177
let too_large =
178
178
( index_size > self . index_size_soft_limit ) . then_some ( BuildReason :: TooLarge ) ;
179
179
180
- too_old. or ( too_large)
180
+ // Order matters! Too large is more urgent than too old.
181
+ too_large. or ( too_old)
181
182
} ,
182
183
} ;
183
184
if let Some ( build_reason) = needs_backfill {
Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ impl<RT: Runtime> VectorIndexFlusher<RT> {
211
211
}
212
212
let too_large =
213
213
( index_size > self . index_size_soft_limit ) . then_some ( BuildReason :: TooLarge ) ;
214
- too_old. or ( too_large)
214
+ // Order matters! Too large is more urgent than too old.
215
+ too_large. or ( too_old)
215
216
} ,
216
217
} ;
217
218
if let Some ( build_reason) = needs_backfill {
You can’t perform that action at this time.
0 commit comments