Commit cd09eda
committed
sql: fix early exit from merge index planner
The MergeIndexes() method of the IndexBackfillerMergePlanner has a check
to see if there are any spans to merge before proceeding with building
the plan for the merge. Previously the check for this was checking
whether there were any elements in spansToDo, which is allocated to have
one entry per source index ID, causing the length check to be vacuously
true. The logic probably meant to to check the length of the spans list
for each individual source index ID, which this patch puts into place.
Epic: none
Release note: None1 parent 481e179 commit cd09eda
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments