This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new b6c1540d779 [improve](common) Add synchronized to avoid concurrent
modification (#42384)
b6c1540d779 is described below
commit b6c1540d7797f6d02672b68b0948a100366e5374
Author: walter <[email protected]>
AuthorDate: Thu Oct 24 22:05:50 2024 +0800
[improve](common) Add synchronized to avoid concurrent modification (#42384)
---
.../src/main/java/org/apache/doris/common/MarkedCountDownLatch.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
b/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
index 6c109d7167b..e1431c4d729 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
@@ -35,7 +35,7 @@ public class MarkedCountDownLatch<K, V> extends
CountDownLatch {
marks = HashMultimap.create();
}
- public void addMark(K key, V value) {
+ public synchronized void addMark(K key, V value) {
marks.put(key, value);
}
@@ -65,7 +65,7 @@ public class MarkedCountDownLatch<K, V> extends
CountDownLatch {
return Lists.newArrayList(marks.entries());
}
- public Status getStatus() {
+ public synchronized Status getStatus() {
return st;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]