forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](thridparty) fix mutex problem of bvar
- Loading branch information
1 parent
d96278a
commit 89d99fc
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/src/bvar/variable.cpp b/src/bvar/variable.cpp | ||
index 1f9da3a..f57aaa6 100644 | ||
--- a/src/bvar/variable.cpp | ||
+++ b/src/bvar/variable.cpp | ||
@@ -81,11 +81,7 @@ struct VarMapWithLock : public VarMap { | ||
|
||
VarMapWithLock() { | ||
CHECK_EQ(0, init(1024, 80)); | ||
- pthread_mutexattr_t attr; | ||
- pthread_mutexattr_init(&attr); | ||
- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | ||
- pthread_mutex_init(&mutex, &attr); | ||
- pthread_mutexattr_destroy(&attr); | ||
+ pthread_mutex_init(&mutex, NULL); | ||
} | ||
}; | ||
|