From b7493f55002eb0e11f3d38b578adfe0292cd2c98 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Wed, 2 Mar 2022 10:39:28 +0200 Subject: [PATCH] Process changes in smaller chunks Fix two major bugs in the same line of code! gitlab #39 Change-Id: I4844c865e61e0fb41d1d019b89be08551734837c --- .../src/org/simantics/interop/update/model/ModelUpdate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.1