Skip to content

Commit

Permalink
[refactor] add synchronized for primary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ylht committed Dec 25, 2023
1 parent c7acf34 commit e34bdff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ecnu/db/schema/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ public synchronized void setForeignKeys(Map<String, String> foreignKeys) {

@JsonGetter
@SuppressWarnings("unused")
public String getPrimaryKeys() {
public synchronized String getPrimaryKeys() {
return String.join(",", primaryKeys);
}

public void setPrimaryKeys(List<String> primaryKeys) {
public synchronized void setPrimaryKeys(List<String> primaryKeys) {
this.primaryKeys = primaryKeys;
}

Expand Down

0 comments on commit e34bdff

Please sign in to comment.