[ion] Return just after destroying the record, do not finish the scan

This commit is contained in:
Léa Saviot
2018-10-24 11:30:53 +02:00
committed by Émilie Feral
parent 7e7c77a0e8
commit 34f5f0262b

View File

@@ -310,6 +310,7 @@ void Storage::destroyRecord(Record record) {
if (record == currentRecord) {
record_size_t previousRecordSize = sizeOfRecordStarting(p);
slideBuffer(p+previousRecordSize, -previousRecordSize);
return;
}
}
}