We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b4384 commit 10260f7Copy full SHA for 10260f7
model-server/src/main/kotlin/org/modelix/model/server/handlers/RepositoriesManager.kt
@@ -214,8 +214,10 @@ class RepositoriesManager(val client: LocalModelClient) {
214
}
215
216
fun getVersionHash(branch: BranchReference): String? {
217
- return store[branchKey(branch)]
218
- ?: store[legacyBranchKey(branch)]?.also { store.put(branchKey(branch), it, true) }
+ return store.runTransaction {
+ store[branchKey(branch)]
219
+ ?: store[legacyBranchKey(branch)]?.also { store.put(branchKey(branch), it, true) }
220
+ }
221
222
223
private fun putVersionHash(branch: BranchReference, hash: String?) {
0 commit comments