DbControl.commit() may call onBeforeCommit() multiple times for the same item
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
I think the getItem() method only should add newly loaded items to the commit queue. As another precaution agains this the DbControl.commit() method should check if an item has already been processed earlier. This is easy since it keeps track of items that has been processed. Third, the Experiment.onBeforeCommit() should reset the byte count so it doesn't increase the byte count if it should be called twice for some other reason.