Skip to content

Commit 6449310

Browse files
committed
fix(model-datastructure): writing on ModelClientV2 failed when more than 10 changes were done
1 parent e9e12f1 commit 6449310

File tree

1 file changed

+4
-1
lines changed
  • model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy

1 file changed

+4
-1
lines changed

model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/CLVersion.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ private fun computeDelta(keyValueStore: IKeyValueStore, versionHash: String, bas
373373

374374
// record read access on the version data itself
375375
val baseVersion = CLVersion(baseVersionHash, store)
376-
baseVersion.operations
376+
377+
// The operations may not be available on the client, but then they don't need to be part of the delta anyway.
378+
// Ignoring that case should be safe.
379+
runCatching { baseVersion.operations }
377380

378381
val oldTree = baseVersion.getTree()
379382
val bulkQuery = store.newBulkQuery()

0 commit comments

Comments
 (0)