From: Marko Luukkainen Date: Wed, 2 Mar 2022 08:39:28 +0000 (+0200) Subject: Process changes in smaller chunks X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b7493f55002eb0e11f3d38b578adfe0292cd2c98;p=simantics%2Finterop.git Process changes in smaller chunks Fix two major bugs in the same line of code! gitlab #39 Change-Id: I4844c865e61e0fb41d1d019b89be08551734837c --- diff --git a/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java b/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java index 17eee72..4e1cc4f 100644 --- a/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java +++ b/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java @@ -464,7 +464,7 @@ public abstract class ModelUpdate { int e = s + getChunkSize(); if (e > list.size()) e = list.size(); - List subList = updateList.getChanges().subList(e, e); + List subList = list.subList(s, e); if (s == 0) { session.syncRequest(new WriteRequest(vg) { public void perform(WriteGraph graph) throws DatabaseException {