An error occurred while fetching the assigned milestone of the selected merge_request.
catfile: Introduce request queues to allow batching reads
1 unresolved thread
1 unresolved thread
Compare changes
- Patrick Steinhardt authored
We're about to convert the catfile package to use request queues, and in that world it's possible for Go to observe data races in our tracing. Prepare for that by locking the trace when either recording new requests or when finishing up the tracing span.
+ 8
− 1
@@ -2,6 +2,7 @@ package catfile
@@ -11,7 +12,8 @@ type trace struct {
@@ -41,10 +43,15 @@ func startTrace(