File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,13 @@ void AqlItemBlock::shrink(size_t nrItems) {
347
347
348
348
decreaseMemoryUsage (sizeof (AqlValue) * (_nrItems - nrItems) * _nrRegs);
349
349
350
+ // remove the shadow row indices pointing to now invalid rows.
351
+ _shadowRowIndexes.erase (_shadowRowIndexes.lower_bound (nrItems),
352
+ _shadowRowIndexes.end ());
353
+
354
+ // adjust the size of the block
355
+ _nrItems = nrItems;
356
+
350
357
for (size_t i = numEntries (); i < _data.size (); ++i) {
351
358
AqlValue& a = _data[i];
352
359
if (a.requiresDestruction ()) {
@@ -368,13 +375,6 @@ void AqlItemBlock::shrink(size_t nrItems) {
368
375
}
369
376
a.erase ();
370
377
}
371
-
372
- // remove the shadow row indices pointing to now invalid rows.
373
- _shadowRowIndexes.erase (_shadowRowIndexes.lower_bound (nrItems),
374
- _shadowRowIndexes.end ());
375
-
376
- // adjust the size of the block
377
- _nrItems = nrItems;
378
378
}
379
379
380
380
void AqlItemBlock::rescale (size_t nrItems, RegisterId nrRegs) {
You can’t perform that action at this time.
0 commit comments