Key lock honoring?

This commit is contained in:
2026-05-14 14:16:02 +02:00
parent baa81f6cb7
commit 651336d48e
2 changed files with 83 additions and 0 deletions
+9
View File
@@ -4339,6 +4339,15 @@ func updateOverrideRowKey(datasetName string, row map[string]any, expanded map[s
}
return changed, retiredKey, nil
}
if oldKey == newKey {
row["key"] = newKey
rowByKey[newKey] = row
if _, ok := lockData[newKey]; !ok {
lockData[newKey] = rowID
changed = true
}
return changed, "", nil
}
conflictingID := -1
if conflicting, ok := rowByKey[newKey]; ok && conflicting != nil {
var conflictingHasID bool