forked from milvus-io/conanfiles
-
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: patch grpc to fix infinite loop
Signed-off-by: Patrick Weizhi Xu <weizhi.xu@zilliz.com>
- Loading branch information
Showing
6 changed files
with
30 additions
and
10 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
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
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
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
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/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc | ||
index 71d427d..08c976c 100644 | ||
--- a/src/core/lib/debug/trace.cc | ||
+++ b/src/core/lib/debug/trace.cc | ||
@@ -71,8 +71,10 @@ bool TraceFlagList::Set(const char* name, bool enabled) { | ||
} | ||
|
||
void TraceFlagList::Add(TraceFlag* flag) { | ||
- flag->next_tracer_ = root_tracer_; | ||
- root_tracer_ = flag; | ||
+ TraceFlag** next = &root_tracer_; | ||
+ while(*next) next = &(*next)->next_tracer_; | ||
+ flag->next_tracer_ = nullptr; | ||
+ *next = flag;; | ||
} | ||
|
||
void TraceFlagList::LogAllTracers() { |
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